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

git-svn-id: trunk@17331 -
This commit is contained in:
florian 2011-04-16 20:38:04 +00:00
parent 953560eeaa
commit 6b4f13c1d7

View File

@ -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;