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:
Augustin Cavalier
2026-01-16 12:33:14 -05:00
parent c329ad53b1
commit c30e5cf106
@@ -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;