1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

Revert "Windows Unicode I/O "

This reverts commit 3e005074a3.
This commit is contained in:
Alexander Medvednikov
2019-07-21 17:29:40 +02:00
parent 9c9fe7029e
commit 23c5f88f3e
6 changed files with 68 additions and 197 deletions

View File

@@ -37,11 +37,7 @@ pub fn println(s string) {
if isnil(s.str) {
panic('println(NIL)')
}
$if windows {
C._putws(s.to_wide())
} $else {
C.printf('%.*s\n', s.len, s.str)
}
C.printf('%.*s\n', s.len, s.str)
}
pub fn eprintln(s string) {
@@ -58,11 +54,7 @@ pub fn eprintln(s string) {
}
pub fn print(s string) {
$if windows {
C.wprintf(s.to_wide())
} $else {
C.printf('%.*s', s.len, s.str)
}
C.printf('%.*s', s.len, s.str)
}
__global total_m i64 = 0