summaryrefslogtreecommitdiffstats
path: root/perl-install/lang.pm
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-01-22 11:57:03 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-01-22 11:57:03 +0000
commit1d922c8c7778f4fd5f0b7d592d102109e20835c1 (patch)
tree7439fc759ca1428e7ba4d4eec919e5d58d7e13d4 /perl-install/lang.pm
parent0b2abe1abda411d0333a53bab0bcec18eccb2042 (diff)
downloaddrakx-backup-do-not-use-1d922c8c7778f4fd5f0b7d592d102109e20835c1.tar
drakx-backup-do-not-use-1d922c8c7778f4fd5f0b7d592d102109e20835c1.tar.gz
drakx-backup-do-not-use-1d922c8c7778f4fd5f0b7d592d102109e20835c1.tar.bz2
drakx-backup-do-not-use-1d922c8c7778f4fd5f0b7d592d102109e20835c1.tar.xz
drakx-backup-do-not-use-1d922c8c7778f4fd5f0b7d592d102109e20835c1.zip
fix accents characters displaying in console mode during install:
- convert translations into utf8 only during install && if using gtk - explicitely bind the codeset to the specified locale's encoding because during install they are reported as utf8
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r--perl-install/lang.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index 53073a139..52a6fd826 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -825,6 +825,10 @@ sub load_console_font {
run_program::run(if_($ENV{LD_LOADER}, $ENV{LD_LOADER}),
'consolechars', '-v', '-f', $name || 'lat0-sun16',
if_($sfm, '-u', $sfm), if_($acm, '-m', $acm));
+
+ #- in console mode install, ensure we'll get translations in the right codeset
+ #- (charset of locales reported by the glibc are UTF-8 during install)
+ $acm and c::bind_textdomain_codeset('libDrakX', lang2charset($lang));
}
sub get_x_fontset {