[Pkg-shadow-devel] [Git][debian/adduser][master] Fix conditional loading of Locale::gettext as well
Marc Haber (@zugschlus)
gitlab at salsa.debian.org
Sat Feb 22 07:25:25 GMT 2025
Marc Haber pushed to branch master at Debian / adduser
Commits:
cd20ba62 by Marc Haber at 2025-02-22T08:23:35+01:00
Fix conditional loading of Locale::gettext as well
Git-Dch: ignore
- - - - -
2 changed files:
- AdduserCommon.pm
- AdduserLogging.pm
Changes:
=====================================
AdduserCommon.pm
=====================================
@@ -64,7 +64,7 @@ my $charset = langinfo($codeset);
BEGIN {
local $ENV{PERL_DL_NONLAZY}=1;
eval {
- use Locale::gettext;
+ require Locale::gettext;
};
if ($@) {
*gettext = sub { shift };
=====================================
AdduserLogging.pm
=====================================
@@ -21,8 +21,9 @@ sub progname {
BEGIN {
local $ENV{PERL_DL_NONLAZY}=1;
- # we need to use eval expression form here, perl cookbook 12.2.3
- eval " use Locale::gettext; "; ## no critic
+ eval {
+ require Locale::gettext;
+ };
if ($@) {
*gettext = sub { shift };
*textdomain = sub { "" };
View it on GitLab: https://salsa.debian.org/debian/adduser/-/commit/cd20ba62a7701b77cf7620892e5086db0f4ef703
--
View it on GitLab: https://salsa.debian.org/debian/adduser/-/commit/cd20ba62a7701b77cf7620892e5086db0f4ef703
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-shadow-devel/attachments/20250222/e2fd3d1d/attachment-0001.htm>
More information about the Pkg-shadow-devel
mailing list