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

In zh locale, NumberFormat.getCurrencyInstance() work wrong.

    XMLWordPrintable

Details

    • sparc
    • solaris_2.6

    Description

      JDK Version: 1.2beta4-E
      OS: Solaris 2.6
      Locale: zh

      In this JDK build, NuberFormat.getCurrencyInstance() work wrong, the currency
      character is not crrect.
      ============================CheckCurrency.java==============================
      import java.util.*;
      import java.text.*;

      public class CheckCurrency {
          
          public static void main(String args[]) {
      System.out.println(NumberFormat.getCurrencyInstance().format(1450.05));
          }
      }
      ==============================================================================
      java CheckCurrency
      ¡è 1,450.05
      set jdk to 1.2beta4-D or previous
      java CheckCurrency
      £¤1,450.05

      jim.hu@prc 1998-05-14

      Attachments

        Activity

          People

            aliusunw Alan Liu (Inactive)
            jhusunw Jim Hu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: