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

JDK117[Win32]: DateFormat demo displays garbage chars on Japanese Win32

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.1.7
    • Fix Version/s: None
    • Component/s: client-libs
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_95

      Description

      Can't read strings in New Date and Pattern field.

      How to reproduce:
      Go to jdk117/demo/i18n/DateTimeFormat/example1.html on HJB.
      Click Demo button on the screen.
      Set locale to Japanese(Japan).
      New Date and Pattern field in Date/Time Formatting Demo Window is filled with garbage characters.

      Environment:
      JDK117 build "I", Japanese Windows95

      This problem is also seen on Win32 of JDK1.1.5 and JDK1.1.6.
      On Solaris, strings in those field are displayed correctly.

      If the font name is changed from TimesRoman and Helvetica to SansSerif and Serif in Utility.java, those strings is displyed correctly on Winodws95.

      jdk1.1.7demo/i18n/code/Utility.java

      public class Utility
      {
          public static final Font titleFont = new Font("TimesRoman",Font.BOLD,18);
          public static final Font labelFont = new Font("TimesRoman",Font.BOLD,14);
          public static final Font choiceFont = new Font("Helvetica",Font.BOLD,12);
          public static final Font editFont = new Font("Helvetica",Font.PLAIN,14);
          public static final Font creditFont = new Font("Helvetica",Font.PLAIN,10);

      The font names of TimesRoman, Helvetica and Courier are deprecated for 1.1.
      These code is not proper for 1.1 demo source program.

        Attachments

          Activity

            People

            • Assignee:
              kkladkosunw Konstantin Kladko (Inactive)
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: