瀏覽代碼

* workaround for bug in GetThreadLocale on some W7, resolves #18574

git-svn-id: trunk@17331 -
florian 14 年之前
父節點
當前提交
6b4f13c1d7
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      rtl/win/sysutils.pp

+ 2 - 0
rtl/win/sysutils.pp

@@ -824,6 +824,8 @@ var
   DefaultCustomLocaleID : LCID;   // typedef DWORD LCID;
   DefaultCustomLanguageID : Word; // typedef WORD LANGID;
 begin
+  /// workaround for Windows 7 bug, see bug report #18574
+  SetThreadLocale(GetUserDefaultLCID);
   InitInternationalGeneric;
   old8087CW:=Get8087CW;
   SysLocale.MBCS:=GetSystemMetrics(SM_DBCSENABLED)<>0;