aboutsummaryrefslogtreecommitdiffstats
path: root/grpmi
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-01-24 13:27:55 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-01-24 13:27:55 +0000
commitd82f53440031145105e0960a842220d817655848 (patch)
tree2e1dd8fb7f1e4e18e0ca92d4f0fa9d9d774e31c9 /grpmi
parent633b108af121efba7dd9cf812568ef07d156564e (diff)
downloadrpmdrake-d82f53440031145105e0960a842220d817655848.tar
rpmdrake-d82f53440031145105e0960a842220d817655848.tar.gz
rpmdrake-d82f53440031145105e0960a842220d817655848.tar.bz2
rpmdrake-d82f53440031145105e0960a842220d817655848.tar.xz
rpmdrake-d82f53440031145105e0960a842220d817655848.zip
fix problems of characters display in non-latin1 locales
Diffstat (limited to 'grpmi')
-rwxr-xr-xgrpmi/grpmi.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/grpmi/grpmi.pl b/grpmi/grpmi.pl
index 848039fc..d763e61e 100755
--- a/grpmi/grpmi.pl
+++ b/grpmi/grpmi.pl
@@ -30,9 +30,12 @@ $::isStandalone = 1;
@ARGV or die "usage: ", basename($0), " [--no-verify-rpm] <[-noupgrade] PACKAGE>...\n";
+c::bind_textdomain_codeset('grpmi', 'UTF8');
sub translate {
my ($s) = @_;
- $s ? c::dgettext('grpmi', $s) : '';
+ my $r = $s ? c::dgettext('grpmi', $s) : '';
+ c::set_tagged_utf8($r);
+ $r;
}
sub sprintf_fixutf8 {
my $need_upgrade;