Commit cb137d9
authored
Remove setlocale call in __hxcpp_stdlibs_boot (#1284)
On Windows, this meant the utf-8 string passed to printf("%s") was
interpreted as if it is from the default system locale encoding instead
of utf-8, which are incompatible so any non-ASCII text comes out
garbled. This setlocale call also meant that using `chcp 65001` does not
haxe the correct effect of being able to view the full range of utf-8
characters from print output.
Originally, this setlocale call was required required due to the use of
print("%S"), but the printing functions in Stdlibs.cpp no longer rely on
that so it is safe to remove.1 parent 0b59d98 commit cb137d9
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
287 | | - | |
288 | 286 | | |
289 | 287 | | |
290 | 288 | | |
| |||
0 commit comments