diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-02-06 14:12:23 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-02-06 14:12:23 +0000 |
commit | 0c9adc69d69314b1164d45631acd19cea273bd04 (patch) | |
tree | e1ef99eb9471822f39c251c76b71fc03c26ad2ba | |
parent | d37ea840d54d483f95d9973016cdcf51e21eefd1 (diff) | |
download | rpmdrake-0c9adc69d69314b1164d45631acd19cea273bd04.tar rpmdrake-0c9adc69d69314b1164d45631acd19cea273bd04.tar.gz rpmdrake-0c9adc69d69314b1164d45631acd19cea273bd04.tar.bz2 rpmdrake-0c9adc69d69314b1164d45631acd19cea273bd04.tar.xz rpmdrake-0c9adc69d69314b1164d45631acd19cea273bd04.zip |
(run_rpm) fix checking if locale is already in UTF-8
-rw-r--r-- | Rpmdrake/pkg.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 427dddd6..a3abf300 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -83,7 +83,7 @@ sub parse_compssUsers_flat() { sub run_rpm { foreach (qw(LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION LC_ALL)) { - local $ENV{$_} = $ENV{$_} . '.UTF-8' if !/UTF-8/; + local $ENV{$_} = $ENV{$_} . '.UTF-8' if $ENV{$_} !~ /UTF-8/; } my @l = `@_`; wantarray() ? @l : join('', @l); |