Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4936845

currency format is incorrect in ru_RU locale

XMLWordPrintable

    • b42
    • generic
    • generic
    • Verified

      locale: ru_Ru;
      jdk: 1.5.0-beta
      platform: solaris, windows (all)

      I believe there is a bug with formatting currency in ru_RU.

      1. To reproduce, login into ru_RU.
      2. Run the attached Currency.java file.

      Currently, the output of the attached test is '3pyb' (this is an approximate english translation of the output, since bugtraq does not represent russian characters correctly).

      (1) I think the correct format for the output should be '3 pyb.' (add a space between the number and the word, add a period after the word).

      (2) In case the input is 3.9 the output can be '3,9 pyb.' or '3 pyb. 90 kon.' Second output is an equivalent valid format in Russian.
      [Exact unicode values for pyb: 0440 0443 0431 and kon: 043A 043E 043F]

      You can see an example in http://www.rambler.ru/db/news/msg.html?mid=3876923&s=2

            jtusla Jiri Tusla (Inactive)
            dvolodarsunw Dina Volodarskaya (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: