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

Revert "Windows Unicode support"

This reverts commit 8462e99bc5.
This commit is contained in:
Alexander Medvednikov
2019-07-24 00:24:34 +02:00
parent b48e23757f
commit 2291e9fcfe
7 changed files with 63 additions and 207 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