#724: [bug] Parrot fails numeric conversion of ucs2 strings
----------------------+-----------------------------------------------------
Reporter: pmichaud | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: core | Version: 1.2.0
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
----------------------+-----------------------------------------------------
Parrot's ucs2 strings don't numify properly.
{{{
$ cat x.pir
.sub 'main'
$S0 = "140"
$N0 = $S0
say $N0
$I0 = find_encoding 'ucs2'
$S0 = trans_encoding $S0, $I0
$N0 = $S0
say $N0
.end
$ ./parrot x.pir
140
1
$
}}}
Of course, I wish I had detected this much sooner -- like before the two
or so hours I spent trying to convert PGE and Rakudo to use fixed-width
string encodings for Unicode...
Pm
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/724>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets