Просмотр исходного кода

* 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 лет назад
Родитель
Сommit
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;
     DefaultUnicodeCodePage:=CP_UTF16;
-    DefaultFileSystemCodePage:=DefaultSystemCodePage;
-    DefaultRTLFileSystemCodePage:=DefaultFileSystemCodePage;
+    DefaultFileSystemCodePage:=CP_UTF8;
+    DefaultRTLFileSystemCodePage:=DefaultSystemCodePage;
   end;