From c30e5cf1067dbb104963fd807f1eefaa965147a5 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Fri, 16 Jan 2026 12:33:14 -0500 Subject: [PATCH] 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. --- src/system/libroot/posix/locale/LocaleDataBridge.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/system/libroot/posix/locale/LocaleDataBridge.cpp b/src/system/libroot/posix/locale/LocaleDataBridge.cpp index b24be90a82..47796f1353 100644 --- a/src/system/libroot/posix/locale/LocaleDataBridge.cpp +++ b/src/system/libroot/posix/locale/LocaleDataBridge.cpp @@ -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;