Ticket #724 (closed bug: fixed)
[bug] Parrot fails numeric conversion of ucs2 strings
| Reported by: | pmichaud | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | core | Version: | 1.2.0 |
| Severity: | medium | Keywords: | |
| Cc: | Language: | ||
| Patch status: | Platform: |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.
