summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/lang.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index b4d7746d0..74a933ce3 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -588,6 +588,7 @@ my %locale2encoding = (
'ja_JP' => 'eucj',
'ko_KR' => 'kr',
'zh_CN' => 'gb',
+ # zh_SG zh_HK were reported as missing by make check:
'zh_HK' => 'big5',
'zh_SG' => 'gb',
'zh_TW' => 'big5',
@@ -1016,14 +1017,15 @@ sub write {
}
+ add2hash($h, $IM_locale_specific_config{$locale->{lang}});
+ $h->{ENC} = $locale2encoding{$locale->{lang}};
+ $h->{ENC} = 'utf8' if member($locale->{lang}, qw(ja_JP.UTF-8 ko_KR.UTF-8 zh_CN.UTF-8 zh_HK.UTF-8 zh_SG.UTF-8 zh_TW.UTF-8));
+
my $im = $locale->{IM};
if ($im && $im ne 'None') {
log::explanations(qq(Configuring "$im" IM));
delete @$h{qw(GTK_IM_MODULE QT_IM_MODULE XIM XIM_PROGRAM XMODIFIERS)};
add2hash($h, { XIM_PROGRAM => $IM_XIM_program{$im}{$h->{LC_NAME}} });
- add2hash($h, $IM_locale_specific_config{$locale->{lang}});
- $h->{ENC} = $locale2encoding{$locale->{lang}};
- $h->{ENC} = 'utf8' if member($locale->{lang}, qw(ja_JP.UTF-8 ko_KR.UTF-8 zh_CN.UTF-8 zh_HK.UTF-8 zh_SG.UTF-8 zh_TW.UTF-8));
add2hash($h, $IM_config{$locale->{IM}});
$h->{QT_IM_MODULE} = $h->{GTK_IM_MODULE} if $h->{GTK_IM_MODULE};