diff options
Diffstat (limited to 'webkit/port/platform/chromium/FileSystemPosix.cpp')
-rw-r--r-- | webkit/port/platform/chromium/FileSystemPosix.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/webkit/port/platform/chromium/FileSystemPosix.cpp b/webkit/port/platform/chromium/FileSystemPosix.cpp index 0264d9e..32069a0 100644 --- a/webkit/port/platform/chromium/FileSystemPosix.cpp +++ b/webkit/port/platform/chromium/FileSystemPosix.cpp @@ -9,19 +9,18 @@ #include "FileSystem.h" #include "CString.h" -#include "base/sys_string_conversions.h" -#include "webkit/glue/glue_util.h" - namespace WebCore { // This function is tasked with transforming a String to a CString for the // underlying operating system. On Linux the kernel doesn't care about the // filenames so long as NUL and '/' are respected. UTF8 filenames seem to be -// pretty common, but are not universal so we punt on the decision here and pass -// the buck to a function in base. -CString fileSystemRepresentation(const String &path) { - return webkit_glue::StdStringToCString( - base::SysWideToNativeMB(webkit_glue::StringToStdWString(path))); +// pretty common, but are not universal, so this could potentially be different +// on different systems. Until we figure out how to pick the right encoding, +// we use UTF8. +// TODO(evanm) - when we figure out how this works in base, abstract this +// concept into ChromiumBridge. +CString fileSystemRepresentation(const String& path) { + return path.utf8(); } } |