Index: src/platform-win32.cc |
diff --git a/src/platform-win32.cc b/src/platform-win32.cc |
index 75b1365db527fc7d5b4a3dd8a21c7e3e3f112d38..ed0e430ce70eb9972b5aa7a17db5868422bf7151 100644 |
--- a/src/platform-win32.cc |
+++ b/src/platform-win32.cc |
@@ -412,13 +412,11 @@ void Time::TzSet() { |
} |
// Make standard and DST timezone names. |
- OS::SNPrintF(Vector<char>(std_tz_name_, kTzNameSize), |
- "%S", |
- tzinfo_.StandardName); |
+ WideCharToMultiByte(CP_UTF8, 0, tzinfo_.StandardName, -1, |
+ std_tz_name_, kTzNameSize, NULL, NULL); |
std_tz_name_[kTzNameSize - 1] = '\0'; |
- OS::SNPrintF(Vector<char>(dst_tz_name_, kTzNameSize), |
- "%S", |
- tzinfo_.DaylightName); |
+ WideCharToMultiByte(CP_UTF8, 0, tzinfo_.DaylightName, -1, |
+ dst_tz_name_, kTzNameSize, NULL, NULL); |
dst_tz_name_[kTzNameSize - 1] = '\0'; |
// If OS returned empty string or resource id (like "@tzres.dll,-211") |