summaryrefslogtreecommitdiffstats
path: root/perl-install/lang.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-04-05 23:46:58 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-04-05 23:46:58 +0000
commit69b6d6056c98dc6c647ff69fd7b773ef21ca3519 (patch)
treef8632d2a8b559ee709cc58627de79a00e63164f8 /perl-install/lang.pm
parent4b790745bdcac576ea7d13292b1fb6ef66dddfa1 (diff)
downloaddrakx-69b6d6056c98dc6c647ff69fd7b773ef21ca3519.tar
drakx-69b6d6056c98dc6c647ff69fd7b773ef21ca3519.tar.gz
drakx-69b6d6056c98dc6c647ff69fd7b773ef21ca3519.tar.bz2
drakx-69b6d6056c98dc6c647ff69fd7b773ef21ca3519.tar.xz
drakx-69b6d6056c98dc6c647ff69fd7b773ef21ca3519.zip
(fs_options): created (gets codepage and iocharset)
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r--perl-install/lang.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index 3a3791115..91535a88c 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -511,6 +511,17 @@ sub get_x_fontset {
($big, $small);
}
+sub fs_options {
+ my ($lang) = @_;
+ my $l = $languages{$lang} or return;
+ my $c = $charsets{$l->[1]} or return;
+ my ($iocharset, $codepage) = @$c[3..4];
+ +{
+ if_($iocharset, iocharset => $iocharset),
+ if_($codepage, codepage => $codepage),
+ };
+}
+
sub charset {
my ($lang, $prefix) = @_;
my $l = $languages{$lang} && $languages{$lang}[2];