Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Page 65001 (UTF-8) on Windows #37

Closed
nanis opened this issue Mar 4, 2015 · 1 comment
Closed

Code Page 65001 (UTF-8) on Windows #37

nanis opened this issue Mar 4, 2015 · 1 comment

Comments

@nanis
Copy link

nanis commented Mar 4, 2015

Codepage 65001 is the the UTF-8 codepage on Windows, see Code Page Identifiers.

But, I get the following (I believe, due to the fact that Encode::Alias does not recognize 65001:

 C:\...> chcp 65001

C:\...> set PERL_ENCODE_DEBUG=1                                                                            
                                                                                                                                 
C:\...> cpan-outdated | cpanm                                                                              
delete $Alias{C} at c:/opt/perl-5.20.2/site/lib/Encode/Alias.pm line 100.                                                        
delete $Alias{ascii} at c:/opt/perl-5.20.2/site/lib/Encode/Alias.pm line 100.                                                    
delete $Alias{cyrillic} at c:/opt/perl-5.20.2/site/lib/Encode/Alias.pm line 100.                                                 
delete $Alias{arabic} at c:/opt/perl-5.20.2/site/lib/Encode/Alias.pm line 100.                                                   
delete $Alias{greek} at c:/opt/perl-5.20.2/site/lib/Encode/Alias.pm line 100.                                                    
delete $Alias{hebrew} at c:/opt/perl-5.20.2/site/lib/Encode/Alias.pm line 100.                                                   
delete $Alias{thai} at c:/opt/perl-5.20.2/site/lib/Encode/Alias.pm line 100.                                                     
Encode::utf8 XS on at c:/opt/perl-5.20.2/site/lib/Encode.pm line 323.                                                            
eval "\L$1" at c:/opt/perl-5.20.2/site/lib/Encode/Alias.pm line 32.                                                              
find_alias(Encode, cp65001)->name =  at c:/opt/perl-5.20.2/site/lib/Encode/Alias.pm line 75.                                     
The locale codeset (cp65001) isn't one that perl can decode, stopped at c:/opt/perl-5.20.2/site/lib/Encode/Locale.pm line 123.   
Compilation failed in require at c:/opt/perl-5.20.2/site/lib/LWP/UserAgent.pm line 1001.                                         
Compilation failed in require at c:\opt\perl-5.20.2\bin/cpan-outdated line 11.                                                   
BEGIN failed--compilation aborted at c:\opt\perl-5.20.2\bin/cpan-outdated line 11.
dankogai added a commit that referenced this issue Mar 9, 2015
@dankogai
Copy link
Owner

dankogai commented Mar 9, 2015

Thanks. Added cp65000 and cp65001 to Encode::Alias in 84b9c11

@dankogai dankogai closed this as completed Mar 9, 2015
rehsack added a commit to meta-cpan/meta-cpan that referenced this issue Apr 2, 2015
Encode from 2.68 to 2.72. Changes since 2.68:

2.72 2015/03/14 02:44:39
! encoding.pm
  Copied from bleadperl to be in sync with it again.
  http://www.nntp.perl.org/group/perl.perl5.porters/2015/03/msg226576.html

2.71 2015/03/12 00:03:52
! encoding.pm
  Pulled: Don't fail 'no encoding' on EBCDIC
  dankogai/p5-encode#38
! lib/Encode/Alias.pm t/Aliases.t
  Add cp65000 => UTF-7 and cp65001 => utf-8-strict
  dankogai/p5-encode#37
! encoding.pm
  Sync w/ bleadperl
  dankogai/p5-encode#36
! bin/encguess
  Pulled: show encguess example per #33
  dankogai/p5-encode#34

2.70 2015/02/05 10:53:00
! Makefile.PL
  add bin/encguess to EXE_FILES

2.69 2015/02/05 10:35:11
! bin/encguess
  Refactored so that
  * does not depend on non-core module (File::Slurp in particular)
  * PODified document
  * -s "encA encB" to -s encA,encB which is more shell-friendly
  * and more
! MANIFEST
+ bin/encguess
  Pulled: Added CLI wrapper for Encode::Guess
  dankogai/p5-encode#32
! Unicode/Unicode.pm
  Pulled: Bump $VERSION in module changed since Encode-2.60
  dankogai/p5-encode#31

Signed-off-by: Jens Rehsack <[email protected]>
jsonn pushed a commit to jsonn/pkgsrc that referenced this issue Apr 26, 2015
-------------------
Revision: 2.73 Date: 2015/04/15 23:14:01
! MANIFEST
+ t/isa.t
! Encode.pm
  Addressed RT#103253: Encode::XS does not inherit from Encode::Encoding
  https://rt.cpan.org/Public/Bug/Display.html?id=103253
! encoding.pm
+ t/encoding-locale.t
  Pulled: Rewrite of encoding::_get_locale_encoding for more portability #40
! encoding.pm
  Pulled: encoding.pm: more inlining #39
  dankogai/p5-encode#39

2.72 2015/03/14 02:44:39
! encoding.pm
  Copied from bleadperl to be in sync with it again.
  http://www.nntp.perl.org/group/perl.perl5.porters/2015/03/msg226576.html

2.71 2015/03/12 00:03:52
! encoding.pm
  Pulled: Don't fail 'no encoding' on EBCDIC
  dankogai/p5-encode#38
! lib/Encode/Alias.pm t/Aliases.t
  Add cp65000 => UTF-7 and cp65001 => utf-8-strict
  dankogai/p5-encode#37
! encoding.pm
  Sync w/ bleadperl
  dankogai/p5-encode#36
! bin/encguess
  Pulled: show encguess example per #33
  dankogai/p5-encode#34

2.70 2015/02/05 10:53:00
! Makefile.PL
  add bin/encguess to EXE_FILES

2.69 2015/02/05 10:35:11
! bin/encguess
  Refactored so that
  * does not depend on non-core module (File::Slurp in particular)
  * PODified document
  * -s "encA encB" to -s encA,encB which is more shell-friendly
  * and more
! MANIFEST
+ bin/encguess
  Pulled: Added CLI wrapper for Encode::Guess
  dankogai/p5-encode#32
! Unicode/Unicode.pm
  Pulled: Bump $VERSION in module changed since Encode-2.60
  dankogai/p5-encode#31

2.68 2015/01/22 10:17:32
! Pulled: Fix C++ build on Windows with VC++
  dankogai/p5-encode#30
  https://rt.cpan.org/Public/Bug/Display.html?id=82897
! lib/Encode/MIME/Header.pm t/taint.t
  Pulled: maintain taint flag when encoding MIME on old perl
  dankogai/p5-encode#29
! Encode.pm
  POD fixes
  dankogai/p5-encode#27
! bin/enc2xs
  Addressed: RT#101345: [PATCH] reduce compiler warnings and stderr noise
  enc2xs no longer emits verbose messages to STDERR
  unless -v switch or $ENV{ENC2XS_VERBOSE} is set.
  https://rt.cpan.org/Public/Bug/Display.html?id=101345

2.67 2014/12/04 20:13:00
! t/taint.t
  Now skips nonexistent methods like Encode::Detect->encode() should
  that be installed.  This resolves RT#100105.
  https://rt.cpan.org/Ticket/Display.html?id=100105

2.66 2014/12/02 23:30:34 $
! bin/enc2xs
  Resolved RT#100656: enc2xs -C fails if URL::Encode::XS is installed
  https://rt.cpan.org/Ticket/Display.html?id=100656

2.65 2014/11/27 14:08:33
! Changes Encode.xs bin/enc2xs
  Applied 3 patches from jhi:
    0001-For-C-don-t-use-the-array-size-in-forward-declaratiotion
    0002-Unused-variables
    0003-1-needs-casting-to-STRLEN
  Message-Id: <[email protected]>
rurban pushed a commit to rurban/p5-encode that referenced this issue May 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants