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

Revert "Support for the printf optimisation for windows and wide strings"

This reverts commit acd28fa495.
This commit is contained in:
Alexander Medvednikov
2019-07-30 18:28:00 +02:00
parent 3e458a8801
commit 79be98d2fb
4 changed files with 7 additions and 27 deletions

View File

@ -51,9 +51,7 @@ pub fn println(s string) {
panic('println(NIL)')
}
$if windows {
// HACKY HACK
// use capital s for printing regular ascii strings
C.wprintf(C.TEXT('%.*S\n'), s.len, s)
C._putws(s.to_wide())
} $else {
C.printf('%.*s\n', s.len, s.str)
}