CLDR Survey bug? (currency formating)

From: Philippe Verdy (verdy_p@wanadoo.fr)
Date: Wed Apr 12 2006 - 22:55:46 CST

  • Next message: Philippe Verdy: "Unicode 5.0 decompositions of Balinese vowel signs with tedung"

    http://unicode.org/cldr/apps/survey?_=fr&x=numbers

    Why does the survey tool generate this invalid output from the correct format and input string?

    //ldml/numbers/currencyFormats/currencyFormatLength/currencyFormat[@type="standard"]/pattern[@type="standard"]

    Locale Data: "#,##0.00 ¤" (correct)

    Example: "-50428.047" → ‎"-50,428,05 XXX"‎ → Unparseable number: "-50,428,05 XXX"

    My opinion is that it should be:

    Example: "-50428.047" → ‎"-50 428,05 XXX"‎ → Unparseable number: "-50428.047"

    The output uses "," from the format string, instead of honoring the group separator (a space for French), and so this produces an unparsable number (because the incorrect comma is the French decimal separator)

    It looks like a bug in the formatting library used, that incorrectly uses the LDML data (which is correct here) when formating the input number with that localized format string.



    This archive was generated by hypermail 2.1.5 : Wed Apr 12 2006 - 23:05:17 CST