Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Complete guess-fix for the \c[...] issue.
  • Loading branch information
jnthn committed May 27, 2012
1 parent 689b820 commit 16654ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/HLL/Actions.pm
Expand Up @@ -166,7 +166,9 @@ class HLL::Actions {
method charname($/) {
my $codepoint := $<integer>
?? $<integer>.ast
!! pir::find_codepoint__Is( ~$/ );
!! pir::find_codepoint__Is(
pir::trans_encoding__Ssi(~$/,
pir::find_encoding__Is('utf8')) );
$/.CURSOR.panic("Unrecognized character name $/") if $codepoint < 0;
make pir::chr($codepoint);
}
Expand Down

0 comments on commit 16654ba

Please sign in to comment.