diff options
author | Pablo Saratxaga <pablo@mandriva.com> | 2000-01-17 14:19:54 +0000 |
---|---|---|
committer | Pablo Saratxaga <pablo@mandriva.com> | 2000-01-17 14:19:54 +0000 |
commit | 39be5039adbec64a10ae686c35bc93ec5f3fca60 (patch) | |
tree | a78c547349f7e45db500c66eb71f72670c498db3 /perl-install | |
parent | e5c494575a161f20e06224c9d2201c85f6477093 (diff) | |
download | drakx-39be5039adbec64a10ae686c35bc93ec5f3fca60.tar drakx-39be5039adbec64a10ae686c35bc93ec5f3fca60.tar.gz drakx-39be5039adbec64a10ae686c35bc93ec5f3fca60.tar.bz2 drakx-39be5039adbec64a10ae686c35bc93ec5f3fca60.tar.xz drakx-39be5039adbec64a10ae686c35bc93ec5f3fca60.zip |
undefined LINGUAS, autoconf/automake doesn't like multiple languages.
defined a RPM_INSTALL_LANG hopefully for next distro rpm will support it.
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/lang.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm index 624dc20ab..e100e6a44 100644 --- a/perl-install/lang.pm +++ b/perl-install/lang.pm @@ -206,7 +206,9 @@ sub set { $ENV{LC_ALL} = $lang; $ENV{LANG} = $languages{$lang}[2]; $ENV{LANGUAGE} = $languages{$lang}[3]; - $ENV{LINGUAS} = $languages{$lang}[3]; +#- apparently autoconf/automake doesn't like LINGUAS having a list of values +#- $ENV{LINGUAS} = $languages{$lang}[3]; + $ENV{RPM_INSTALL_LANG} = $languages{$lang}[3]; local $_ = $languages{$lang}[1]; s/iso-8859-1$/iso-8859-15/; @@ -220,6 +222,7 @@ sub set { delete $ENV{LANG}; delete $ENV{LC_ALL}; delete $ENV{LINGUAS}; + delete $ENV{RPM_INSTALL_LANG}; } } @@ -231,7 +234,7 @@ sub write { my $h = { LC_ALL => $lang }; if (my $l = $languages{$lang}) { - add2hash $h, { LANG => $l->[2], LANGUAGE => $l->[2], LINGUAS => $l->[3] }; + add2hash $h, { LANG => $l->[2], LANGUAGE => $l->[2], RPM_LANG_INSTALL => $l->[3] }; my $c = $charsets{$l->[1] || ''}; if ($c && $c->[0] && $c->[1]) { |