Thread
-
Re: [PATCH] Fix severe performance regression with gettext 0.20+ on Windows
Thomas Munro <thomas.munro@gmail.com> — 2025-12-15T18:23:41Z
On Wed, Dec 10, 2025 at 1:45 PM Bryan Green <dbryan.green@gmail.com> wrote: > 1. Locale format mismatch > gettext 0.20.1+ introduced a get_lcid() function that expects Windows > locale format ("English_United States.1252") rather than POSIX format > ("en_US"). This function enumerates all Windows locales (~259) until a > match is found, then uses the resulting LCID to determine the catalog path. I'm surprised there isn't a fast path that skips all that deprecated (?) stuff when you use BCP 47 language codes...