فهرست منبع

* allow initialization of DefaultSystemCodepage also if system could return more information about prepared codepages

git-svn-id: trunk@28952 -
Tomas Hajny 10 سال پیش
والد
کامیت
99e9571e0e
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      rtl/os2/system.pas

+ 4 - 2
rtl/os2/system.pas

@@ -1282,7 +1282,7 @@ begin
 {$endif SYSTEMEXCEPTIONDEBUG}
 {$endif SYSTEMEXCEPTIONDEBUG}
 
 
   RC := DosQueryCP (SizeOf (CPArr), @CPArr, ReturnedSize);
   RC := DosQueryCP (SizeOf (CPArr), @CPArr, ReturnedSize);
-  if RC <> 0 then
+  if (RC <> 0) and (RC <> 473) then
    OSErrorWatch (RC)
    OSErrorWatch (RC)
   else if (ReturnedSize >= 4) then
   else if (ReturnedSize >= 4) then
    begin
    begin
@@ -1290,5 +1290,7 @@ begin
     DefaultRTLFileSystemCodePage := DefaultSystemCodePage;
     DefaultRTLFileSystemCodePage := DefaultSystemCodePage;
     DefaultFileSystemCodePage := DefaultSystemCodePage;
     DefaultFileSystemCodePage := DefaultSystemCodePage;
     DefaultUnicodeCodePage := CP_UTF16;
     DefaultUnicodeCodePage := CP_UTF16;
-   end;
+   end
+  else
+   OSErrorWatch (RC);
 end.
 end.