libroot/locale: Allow global locales to be applied to the current thread.
I added this assertion thinking it would incorrectly override thread locales, and that invocationns this way would be a bug. Instead it appears that this is the expected behavior in select circumstances. Fixes #19896 and other recent regressions.
This commit is contained in:
@@ -47,9 +47,6 @@ LocaleCtypeDataBridge::LocaleCtypeDataBridge(bool isGlobal)
|
||||
void
|
||||
LocaleCtypeDataBridge::ApplyToCurrentThread()
|
||||
{
|
||||
if (isGlobal)
|
||||
abort();
|
||||
|
||||
ThreadLocale* threadLocale = GetCurrentThreadLocale();
|
||||
threadLocale->ctype_b = *addrOfClassInfoTable;
|
||||
threadLocale->ctype_tolower = *addrOfToLowerTable;
|
||||
|
||||
Reference in New Issue
Block a user