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


The Version class accepts numeric components that contain digits with
diacritics, and faithfully preserves the grapheme string just as it
preserves non-ASCII digits.  But these components then behave badly
in comparisons:

> Version.new("34\x[308]5") leg Version.new("4")
Less

The digit with diacritic effectively terminates the digit sequence,
for the purpose of finding a numeric value.  This is probably due to
[perl #128542].  This implies that fixing that bug, making the coercion
reject such modified digits (as appears to be the intent), would cause
the Version comparison to signal an error.  That would also be buggy
behaviour, so Version has a problem distinct from the problem with
Str.Int.

-zefram

Reply via email to