diff options
| author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2025-11-02 12:50:05 +0000 |
|---|---|---|
| committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2025-11-02 18:20:25 +0000 |
| commit | b518f9f16b0fc09802d238eef91de41ed54de282 (patch) | |
| tree | 767b002668bf26c851b8bfee986bef75eee0ad62 /perl-install/standalone/draksec | |
| parent | 46d9cd2601cdf11081c4f83fa0be21b3dbc060f2 (diff) | |
| download | drakx-master.tar drakx-master.tar.gz drakx-master.tar.bz2 drakx-master.tar.xz drakx-master.zip | |
Since Perl 5.28, Perl has used the thread-safe uselocale() functions
from the C standard library when setting the locale. Once a thread-safe
locale setting has been made, the Locale::gettext functions will use
those settings, not the global locale settings. So calling the drakx
c::setlocale() and c::init_setlocale() functions, which still use the
underlying setlocale() function from the C standard library normally
has no effect. However, prior to Perl 5.38, there was a bug in Perl
that could cause the main thread to revert to using the global locale
settings, and it it would seem this bug was being triggered by the
stage2 installer, meaning it still properly translated the UI after
the language selection step. Now we have a newer version of Perl, this
is no longer so, and the UI contiues to be in English after the user
has selected a different language (mga#34656).
The POSIX::setlocale() function affects the thread-safe locale, so can
be used to fix this bug.
This patch removes the c::setlocale() function to prevent reintroduction
of this bug, and moves the c::init_locale() function to the common module.
Diffstat (limited to 'perl-install/standalone/draksec')
0 files changed, 0 insertions, 0 deletions
