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

Unified Diff: runtime/bin/utils_win.cc

Issue 11565008: Use unicode versions of process APIs on Windows. Additionally, (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/utils_macos.cc ('k') | runtime/platform/globals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/utils_win.cc
diff --git a/runtime/bin/utils_win.cc b/runtime/bin/utils_win.cc
index cf8f93a873b4ebff6664384b6740c9069473fa05..75cc496213774f30b816e4fe54aab06abb066515 100644
--- a/runtime/bin/utils_win.cc
+++ b/runtime/bin/utils_win.cc
@@ -104,3 +104,12 @@ const char* StringUtils::WideToUtf8(const wchar_t* wide) {
const wchar_t* StringUtils::Utf8ToWide(const char* utf8) {
return const_cast<const wchar_t*>(Utf8ToWide(const_cast<char*>(utf8)));
}
+
+wchar_t** ShellUtils::GetUnicodeArgv(int* argc) {
+ wchar_t* command_line = GetCommandLineW();
+ return CommandLineToArgvW(command_line, argc);
+}
+
+void ShellUtils::FreeUnicodeArgv(wchar_t** argv) {
+ LocalFree(argv);
+}
« no previous file with comments | « runtime/bin/utils_macos.cc ('k') | runtime/platform/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698