# New Ticket Created by  Zoffix Znet 
# Please include the string:  [perl #127866]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=127866 >


There are numerous No characters that may be entered, say, by a user being 
asked for numeric input: 
http://www.fileformat.info/info/unicode/category/No/list.htm

However, Rakudo will fail to convert it into an Int, due to it not being a 
digit:

<ZoffixWin> m: say '௰'.Int
<camelia> rakudo-moar 40a953: OUTPUT«Cannot convert string to number: base-10 
number must begin with valid digits or '.' in '⏏௰' (indicated by ⏏)␤  in block 
<unit> at /tmp/VabvZF4PiK line 1␤␤Actually thrown at:␤  in block <unit> at 
/tmp/VabvZF4PiK line 1␤␤»


I think from the programmer's point of view, it should be expected that the 
conversion should succeed, where it makes sense. Since the same character can 
be used bare and work:

<ZoffixWin> m: say ௰
<camelia> rakudo-moar 40a953: OUTPUT«10␤»

Reply via email to