Am 28.06.2012 14:31, schrieb Gabor Szabo:
The following script generates an exception
use v6;
my %count;
my $s = 'שלום';
%count{$s} = 1;
say $s;
say %count.perl;
no ICU lib loaded
in method perl at src/gen/CORE.setting:3892
in method perl at src/gen/CORE.setting:5921
in method perl at src/gen/CORE.setting:6115
in block <anon> at code/count.pl6:7
The crash is in calling .perl on the hash I think, printing the scalar worked.
As I read from the IRC log http://irclog.perlgeek.de/perl6/2012-03-16
I need to install libicu-dev and rebuild parrot and rakudo to solve this issue.
It indeed solved it.
I am still wondering what is the issue there? Having
$s = 'Gábor'
does not yet trigger the crash but the Hebrew letters do.
The difference is that á fits into Latin-1, and there's some support for
characters in the Latin-1 range hardcoded into parrot/nqp/rakudo (dunno
which part exactly) which works even in the absence of ICU.
Cheers,
Moritz