Stats table cannot be exported in Japanese locale (Bug #38)
Description
I updated ja.po for exporting statistics table and found "Export" button does not write any file when I ticked "Stats table" box in Japanese locale.
Launching AMC-export.pl by hand using xml argument file remained in /tmp, I got the following message:
$ LC_ALL=ja_JP.UTF-8 /usr/bin/perl /usr/local/lib/AMC/AMC-export.pl --xmlargs /tmp/AMC-PACK-OCnwh5oW.xml Cannot decode string with wide characters at /usr/local/lib/perl5/5.12.4/mach/Encode.pm line 174.
In my perl installation (on FreeBSD 8.1), line 174 of Encode.pm calls $enc->decode() in sub decode().
164: sub decode($$;$) { 165: my ( $name, $octets, $check ) = @_; 166: return undef unless defined $octets; 167: $octets .= '' if ref $octets; 168: $check ||= 0; 169: my $enc = find_encoding($name); 170: unless ( defined $enc ) { 171: require Carp; 172: Carp::croak("Unknown encoding '$name'"); 173: } 174: my $string = $enc->decode( $octets, $check ); 175: $_[1] = $octets if $check and !ref $check and !( $check & LEAVE_SRC() ); 176: return $string; 177: }
Please let me know if you need any other information.
History
Updated by Alexis Bienvenüe about 13 years ago
Applied in changeset r979.
- % Done changed from 0 to 100
- Status changed from New to Resolved
Updated by Alexis Bienvenüe about 13 years ago
Yes, sorry: I forgot a encode('utf-8',...)
when passing an argument to a OpenOffice::OODoc function. I should be ok now (revision r979).
Updated by Alexis Bienvenüe about 13 years ago
- Status changed from Resolved to Closed