Skip to content

Instantly share code, notes, and snippets.

@markjreed
Last active December 31, 2015 06:39
Show Gist options
  • Save markjreed/7948743 to your computer and use it in GitHub Desktop.
Save markjreed/7948743 to your computer and use it in GitHub Desktop.
Attempting to use UTF-8 characters in perl6 -e code on Mavericks
$ perl6 -v
This is perl6 version 2013.11 built on parrot 5.9.0 revision 0
$ uname -v
Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64
$ perl6 -e 'say $*VM<config><has_icu>'
1
$ export | grep UTF
declare -x LANG="en_US.UTF-8"
declare -x LC_ALL="en_US.UTF-8"
$ perl6 -e 'say ("A".."C")>>xx>>2' # Texan works
A A B B C C
$ perl6 -e 'say ("A".."C")»xx»2' # French doesn't
===SORRY!=== Error while compiling -e
Two terms in a row
at -e:1
------> say ("A".."C")⏏»xx»2
expecting any of:
postfix
infix stopper
infix or meta-infix
statement end
statement modifier
statement modifier loop
$ od -t x1 <<<'»' # this really is UTF-8
0000000 c2 bb 0a
0000003
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment