niecza icon indicating copy to clipboard operation
niecza copied to clipboard

Kannada digit gives LTA error message when used as number

Open masak opened this issue 12 years ago • 2 comments

<sorear> n: ೨
<p6eval> niecza v19-26-g025a6e6: OUTPUT«Unhandled exception: Digit <೨> too large for radix 10 [...]
<sorear> I thought that would break :>
<masak> ೨ isn't so large... :P
<sorear> it's probably doing something like ord($_) - 48
* masak submits nieczaissue
<sorear> :D
<sorear> .u ೨
<phenny> U+0CE8 KANNADA DIGIT TWO (೨)

masak avatar Aug 19 '12 17:08 masak

What's the matter with digit too large for radix 10? What error message do you think it should give?

colomon avatar Aug 20 '12 17:08 colomon

I don't know what message it should give, but the message it gives is wrong, because the value of the digit ೨ is 2.

Probably Niecza should just say that it doesn't do non-ASCII digits. Or something.

masak avatar Aug 20 '12 20:08 masak