aboutsummaryrefslogtreecommitdiffstats
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
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
-rwxr-xr-xgrpmi/grpmi.pl5
-rw-r--r--rpmdrake.pm5
-rw-r--r--rpmdrake.spec1
3 files changed, 9 insertions, 2 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;
diff --git a/rpmdrake.pm b/rpmdrake.pm
index b99c24f9..e89a9c4c 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -41,9 +41,12 @@ if ($@) {
}
ugtk2::add_icon_path('/usr/share/rpmdrake/icons');
+c::bind_textdomain_codeset('rpmdrake', 'UTF8');
sub translate {
my ($s) = @_;
- $s ? c::dgettext('rpmdrake', $s) : '';
+ my $r = $s ? c::dgettext('rpmdrake', $s) : '';
+ c::set_tagged_utf8($r);
+ $r;
}
sub sprintf_fixutf8 {
my $need_upgrade;
diff --git a/rpmdrake.spec b/rpmdrake.spec
index 3ffee510..3a83cba4 100644
--- a/rpmdrake.spec
+++ b/rpmdrake.spec
@@ -123,6 +123,7 @@ rm -rf $RPM_BUILD_ROOT
- fix crashing when managing to call Remove or Edit with nothing
selected (#970)
- add a dependency to a recent drakxtools to fix #1030
+- fix problems of characters display in non-latin1 locales
* Tue Jan 21 2003 Guillaume Cottenceau <gc@mandrakesoft.com> 2.1-3mdk
- rpmdrake: