bug in u_versionToString(); value of 104 is output as "14"
General
Trac Info
General
Trac Info
Description
u_versionToString() has a bug where, if the field is greater than 100, but the tens digit is zero, then it skips outputting the tens digit. For example, a field with value 104 will be output as "14".
I noticed this in ICU versions 66.1 through 69.1, where the version for the "en_US" locale is 153.104, but u_versionToString() outputs "153.14".
Activity
Peter Edberg
December 5, 2022 at 7:45 PM
Duplicate of the ICU ticket
jdavis
November 29, 2022 at 7:35 PM
Accidentally reported this in CLDR instead of ICU. Moved to ICU-22215
u_versionToString() has a bug where, if the field is greater than 100, but the tens digit is zero, then it skips outputting the tens digit. For example, a field with value 104 will be output as "14".
I noticed this in ICU versions 66.1 through 69.1, where the version for the "en_US" locale is 153.104, but u_versionToString() outputs "153.14".