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

Unified Diff: runtime/bin/platform_win.cc

Issue 1194883002: Improve the encoding/decoding to/from system encoding on Windows (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Addressed review comments from lrn@ Created 5 years, 6 months 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/main.cc ('k') | runtime/bin/process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/platform_win.cc
diff --git a/runtime/bin/platform_win.cc b/runtime/bin/platform_win.cc
index d109c82dda07cbddb8cca9596a8322fda756268f..9830db2c9ebc863856023aca91260b7105a7d650 100644
--- a/runtime/bin/platform_win.cc
+++ b/runtime/bin/platform_win.cc
@@ -10,6 +10,7 @@
#include "bin/log.h"
#include "bin/socket.h"
#include "bin/utils.h"
+#include "bin/utils_win.h"
namespace dart {
@@ -66,7 +67,7 @@ char** Platform::Environment(intptr_t* count) {
tmp = strings;
for (intptr_t current = 0; current < i;) {
// Skip the strings that were not counted above.
- if (*tmp != '=') result[current++] = StringUtils::WideToUtf8(tmp);
+ if (*tmp != '=') result[current++] = StringUtilsWin::WideToUtf8(tmp);
tmp += (wcslen(tmp) + 1);
}
FreeEnvironmentStringsW(strings);
@@ -96,7 +97,7 @@ char* Platform::ResolveExecutablePath() {
free(tmp_buffer);
return NULL;
}
- char* path = StringUtils::WideToUtf8(tmp_buffer);
+ char* path = StringUtilsWin::WideToUtf8(tmp_buffer);
free(tmp_buffer);
// Return the canonical path as the returned path might contain symlinks.
char* canon_path = File::GetCanonicalPath(path);
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/bin/process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698