Created
April 23, 2015 01:14
-
-
Save skids/fd9fc80c545e76da7d29 to your computer and use it in GitHub Desktop.
can_haz_1252
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I have patches with the glue to hook in windows-1252 codepage support. | |
I don't know whether that's a help or distraction for current the charset work. | |
If the latter I can hold off and adapt them later, if the former it would be | |
3 PRs on MoarVM, nqp, and rakudo, or I could just send patches or whatnot. | |
From the moarvm git log: | |
Author: jnthn <jnthn@jnthn.net> | |
Date: Fri Feb 14 21:01:50 2014 +0100 | |
Correct Latin-1; add Windows-1252. | |
The Latin-1 implementation we had actually did Windows-1252. We're not | |
HTML 5, so should actually Latin-1 when asked to. Keep the original | |
code around as a Windows-1252 implementation. | |
Locally: | |
bri@atlas:~/git/rakudo$ ./perl6-j -e 'Buf.new(0x80).decode("windows-1252").say' | |
€ | |
bri@atlas:~/git/rakudo$ ./perl6-j -e 'Buf.new(0x80).decode("iso-8859-1").say' | |
| |
bri@atlas:~/git/rakudo$ ./perl6-m -e 'Buf.new(0x80).decode("windows-1252").say' | |
€ | |
bri@atlas:~/git/rakudo$ ./perl6-m -e 'Buf.new(0x80).decode("iso-8859-1").say' | |
| |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment