diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-01-24 13:27:55 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-01-24 13:27:55 +0000 |
commit | d82f53440031145105e0960a842220d817655848 (patch) | |
tree | 2e1dd8fb7f1e4e18e0ca92d4f0fa9d9d774e31c9 /rpmdrake.pm | |
parent | 633b108af121efba7dd9cf812568ef07d156564e (diff) | |
download | rpmdrake-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 'rpmdrake.pm')
-rw-r--r-- | rpmdrake.pm | 5 |
1 files changed, 4 insertions, 1 deletions
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; |