Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(725)

Unified Diff: runtime/bin/utils.h

Issue 11558012: Use FormatMessageW for Windows error messages to handle internationalized messages correctly. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/process_win.cc ('k') | runtime/bin/utils_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/utils.h
diff --git a/runtime/bin/utils.h b/runtime/bin/utils.h
index 70545ab180dc1131fac46d7fdf8abf3312cf035f..e655f6cd2d1a82de7da8fe95941741f5a48ee0c4 100644
--- a/runtime/bin/utils.h
+++ b/runtime/bin/utils.h
@@ -59,10 +59,14 @@ class StringUtils {
// conversions are only needed on Windows. If the methods returns a
// pointer that is different from the input pointer the returned
// pointer is allocated with malloc and should be freed using free.
- static const char* SystemStringToUtf8(const char* str);
- static char* SystemStringToUtf8(char* str);
- static const char* Utf8ToSystemString(const char* utf8);
- static char* Utf8ToSystemString(char* utf8);
+ static const char* ConsoleStringToUtf8(const char* str);
+ static char* ConsoleStringToUtf8(char* str);
+ static const char* Utf8ToConsoleString(const char* utf8);
+ static char* Utf8ToConsoleString(char* utf8);
+ static char* WideToUtf8(wchar_t* wide);
+ static const char* WideToUtf8(const wchar_t* wide);
+ static wchar_t* Utf8ToWide(char* utf8);
+ static const wchar_t* Utf8ToWide(const char* utf8);
};
#endif // BIN_UTILS_H_
« no previous file with comments | « runtime/bin/process_win.cc ('k') | runtime/bin/utils_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698