浏览代码

* changed the initial value DefaultFileSystemCodePage from CP_ACP to CP_UTF8:
o since we always use UTF-16 for OS file API calls, this will only affect
possible intermediate code page conversions inside RTL routines and hence
prevent potential data loss. This was already the same for NativeNT and
WinCE, which are in the same boat
o DefaultRTLFileSystemCodePage, which specifies the code page used to return
strings from single byte RTL routines, remains CP_ACP and hence nothing
will change as far as programs using the RTL are concerned

git-svn-id: trunk@26377 -

Jonas Maebe 11 年之前
父节点
当前提交
d1b2a5f362
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      rtl/win/syswin.inc

+ 2 - 2
rtl/win/syswin.inc

@@ -700,7 +700,7 @@ procedure InitWin32Widestrings;
 
 
     DefaultSystemCodePage:=GetACP;
     DefaultSystemCodePage:=GetACP;
     DefaultUnicodeCodePage:=CP_UTF16;
     DefaultUnicodeCodePage:=CP_UTF16;
-    DefaultFileSystemCodePage:=DefaultSystemCodePage;
-    DefaultRTLFileSystemCodePage:=DefaultFileSystemCodePage;
+    DefaultFileSystemCodePage:=CP_UTF8;
+    DefaultRTLFileSystemCodePage:=DefaultSystemCodePage;
   end;
   end;