]> git.lizzy.rs Git - rust.git/commit
rt: Convert timezone to utf-8 on Windows
authorklutzy <klutzytheklutzy@gmail.com>
Tue, 5 Nov 2013 04:20:04 +0000 (13:20 +0900)
committerklutzy <klutzytheklutzy@gmail.com>
Tue, 5 Nov 2013 04:54:09 +0000 (13:54 +0900)
commite63ffc1d1677e31c8978d13a87811c9ee19e5927
tree7bba77e8d513bdd5d343e0bdc90ef3397e5ce700
parent72e432df9dc5f546d522654336a38213af69cac8
rt: Convert timezone to utf-8 on Windows

Previously #9418 fixed utf-8 assertion issue by wcsftime,
but the function didn't work as expected: it follows the locale
set by setlocale(), not the system code page.
This patch fixes it by manual multibyte-to-unicode conversion.
src/rt/rust_builtin.cpp