Verified Commit 0f2fc1e8 authored by Iain Lane's avatar Iain Lane
Browse files

kbdnames-maker: Call `{bind,}textdomain` after switching locale

There's a change in perl 5.28 to use `uselocale()` & friends instead of
gettext directly, to support thread safety. Apparently this causes the
results of `gettext()` calls to be cached now where they weren't before,
and this breaks our keyboard name generation. For example, we have

  en_GB*model*sun_type6_jp*Sun Type 6 (Japonesa)

instead of

  en_GB*model*sun_type6_jp*Sun Type 6 (Japanese)

and many many other examples.

Calling `bindtextdomain()` and then `textdomain()` after changing locale
causes the cache to be invalidated and we get correct results again.

LP: #1817453
parent 849d960e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment