Skip Menu |
 

This queue is for tickets about the Encode CPAN distribution.

Report information
The Basics
Id: 14041
Status: resolved
Priority: 0/
Queue: Encode

People
Owner: Nobody in particular
Requestors: at [...] altlinux.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 2.10
  • 2.11
Fixed in: (no value)

Attachments
perl-Encode-2.11-alt-HanExtra.patch



Subject: support for HanExtra encodings documented but not enabled
Download (untitled) / with headers
text/plain 528b
Encode::Supported reffers to Encode::HanExtra for additional Chinese encodings, but support for them seems to be disabled in Encode::Config. Implicit load documented in Encode::HanExtra does not work: use Encode; # Traditional Chinese $euc_tw = encode("euc-tw", $utf8); # loads Encode::HanExtra implicitly $utf8 = decode("euc-tw", $euc_tw); # ditto $ perl -MEncode -le '$utf8 = decode("euc-tw", "xxx"); print $utf8' Unknown encoding 'euc-tw' at -e line 1 $ The attached patch re-enables support for Encode::HanExtra.
--- Encode-2.11/lib/Encode/Config.pm- 2005-08-05 14:58:50 +0400 +++ Encode-2.11/lib/Encode/Config.pm 2005-08-07 16:45:37 +0400 @@ -137,9 +137,21 @@ unless (ord("A") == 193){ 'cp950' => 'Encode::TW', 'MacChineseTrad' => 'Encode::TW', - #'big5plus' => 'Encode::HanExtra', - #'euc-tw' => 'Encode::HanExtra', - #'gb18030' => 'Encode::HanExtra', + 'big5-1984' => 'Encode::HanExtra', + 'big5ext' => 'Encode::HanExtra', + 'big5plus' => 'Encode::HanExtra', + 'cccii' => 'Encode::HanExtra', + 'unisys' => 'Encode::HanExtra', + 'euc-tw' => 'Encode::HanExtra', + 'gb18030' => 'Encode::HanExtra', + 'cns11643-1' => 'Encode::HanExtra', + 'cns11643-2' => 'Encode::HanExtra', + 'cns11643-3' => 'Encode::HanExtra', + 'cns11643-4' => 'Encode::HanExtra', + 'cns11643-5' => 'Encode::HanExtra', + 'cns11643-6' => 'Encode::HanExtra', + 'cns11643-7' => 'Encode::HanExtra', + 'cns11643-f' => 'Encode::HanExtra', 'MIME-Header' => 'Encode::MIME::Header', 'MIME-B' => 'Encode::MIME::Header',
Download (untitled) / with headers
text/plain 406b
[guest - Sun Aug 7 08:58:53 2005]: Show quoted text
> Encode::Supported reffers to Encode::HanExtra for additional Chinese > encodings, but support for them seems to be disabled in > Encode::Config.
You no longer have to with the recent Encode::HanExtra because it runs enc2xs -C when installed, reconfiguring the local config file (Encode::ConfigLocal). Thanks for your report, however. Dan the Encode Maintainer


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.