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

Unified Diff: runtime/bin/socket_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/process_win.cc ('k') | runtime/bin/utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket_win.cc
diff --git a/runtime/bin/socket_win.cc b/runtime/bin/socket_win.cc
index 451d7f67c5ae244bcf218c16219a82f659660f72..19625e725aeaf92aa2b6fa69d44b51a00daea5c3 100644
--- a/runtime/bin/socket_win.cc
+++ b/runtime/bin/socket_win.cc
@@ -13,6 +13,8 @@
#include "bin/socket.h"
#include "bin/thread.h"
#include "bin/utils.h"
+#include "bin/utils_win.h"
+
namespace dart {
namespace bin {
@@ -357,7 +359,7 @@ bool Socket::ReverseLookup(const RawAddr& addr,
bool Socket::ParseAddress(int type, const char* address, RawAddr* addr) {
int result;
- const wchar_t* system_address = StringUtils::Utf8ToWide(address);
+ const wchar_t* system_address = StringUtilsWin::Utf8ToWide(address);
if (type == SocketAddress::TYPE_IPV4) {
result = InetPton(AF_INET, system_address, &addr->in.sin_addr);
} else {
@@ -454,7 +456,7 @@ AddressList<InterfaceSocketAddress>* Socket::ListInterfaces(
u != NULL; u = u->Next) {
addresses->SetAt(i, new InterfaceSocketAddress(
u->Address.lpSockaddr,
- StringUtils::WideToUtf8(a->FriendlyName),
+ StringUtilsWin::WideToUtf8(a->FriendlyName),
a->Ipv6IfIndex));
i++;
}
« no previous file with comments | « runtime/bin/process_win.cc ('k') | runtime/bin/utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698