Bug#225870: [PATCH] Re: validlocale can not handle language_territory.codeset style locale
Here is a patch to fix this.
--- base-config-2.08/validlocale~ 2004-01-28 11:45:26.000000000 +0900
+++ base-config-2.08/validlocale 2004-01-28 11:45:29.000000000 +0900
@@ -35,11 +35,15 @@
# Hm, if charset is missing, how to we pick the correct one to
# use? Fetching the value from /usr/share/i18n/SUPPORTED should
# work on Debian.
- $charset = get_default_charset("$locale$modifier")
- unless (defined $charset);
+ my $codeset = "";
+ if (defined $charset) {
+ $codeset = '.' . $charset;
+ } else {
+ $charset = get_default_charset("$locale$modifier");
+ }
# print "L: $locale C: $charset M: $modifier\n";
- print "$locale$modifier $charset\n";
+ print "$locale$codeset$modifier $charset\n";
exit 1;
} else {
--
ISHIKAWA Mutsumi
<ishikawa@netvillage.co.jp>, <ishikawa@linux.or.jp>, <ishikawa@debian.org>
Reply to: