diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-08-30 14:15:05 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-08-30 14:15:05 +0000 |
commit | 170870567682dd8b95706c1cc6e681584a25ace7 (patch) | |
tree | 94a59b8ddb70920d309f9c6fe0dbeed2a7d27a67 /urpm | |
parent | ad8e48c321d683614d8955def4b98dea3b228081 (diff) | |
download | urpmi-170870567682dd8b95706c1cc6e681584a25ace7.tar urpmi-170870567682dd8b95706c1cc6e681584a25ace7.tar.gz urpmi-170870567682dd8b95706c1cc6e681584a25ace7.tar.bz2 urpmi-170870567682dd8b95706c1cc6e681584a25ace7.tar.xz urpmi-170870567682dd8b95706c1cc6e681584a25ace7.zip |
decode every utf8 that gets translated
Diffstat (limited to 'urpm')
-rw-r--r-- | urpm/msg.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/urpm/msg.pm b/urpm/msg.pm index 6841120a..5f60a070 100644 --- a/urpm/msg.pm +++ b/urpm/msg.pm @@ -29,10 +29,12 @@ sub from_utf8_dummy { $_[0] } sub N { my ($format, @params) = @_; - sprintf( + my $s = sprintf( eval { Locale::gettext::gettext($format || '') } || $format, @params, ); + utf8::decode($s); + $s; } my $noexpr = N("Nn"); |