charset was set by get_locale, which is obviously
bogus.
Reported by Tommi Vainikainen <thv -at- iki fi>
mkpath ( "$wwwdir/source/$key" );
foreach my $lang (@LANGUAGES) {
my $locale = get_locale( $lang );
mkpath ( "$wwwdir/source/$key" );
foreach my $lang (@LANGUAGES) {
my $locale = get_locale( $lang );
- my $charset = get_locale( $lang );
+ my $charset = get_charset( $lang );
setlocale ( LC_ALL, $locale ) or do {
warn "couldn't set locale ($lang/$locale)\n";
next;
setlocale ( LC_ALL, $locale ) or do {
warn "couldn't set locale ($lang/$locale)\n";
next;