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

Rightclicking displays garbage letters

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      05
    • CPU:
      x86
    • OS:
      windows_98, windows_xp

      Description



      Name: gm110360 Date: 10/07/2002


      FULL PRODUCT VERSION :
      java version "1.4.1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
      Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)

      FULL OPERATING SYSTEM VERSION : Windows 98 [Version
      4.10.1998]

      ADDITIONAL OPERATING SYSTEMS : N/A



      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Swedish locale

      A DESCRIPTION OF THE PROBLEM :
      Rightclicking the Java icon to bring up the menue for the
      Java Plug-in displays garbage international letters for the
      swedish locale. ?? instead of ?, ?| instead of ? etc.

      I'm not sure, but I think this worked in 1.4.0, though
      perhaps then it wasn't localized and then I wouldn't have
      noticed.

      I'm having the same problem in the console window, though
      I've allways believed that is a windows issue. Perhaps this
      is the same problem? It's not a very big problem, but it
      dosn't look so nice, especially for the Plug-in which a lot
      of people will notice.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Swedish windows
      2. Install the Plug-in
      3. Right-click the Java icon

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      Excepcted: "?ppna systemf?nster" and "St?ng av"

      Actual: "?|ppna systemf?<reversedP>nster" and "St??ng av"

      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Review ID: 165434)
      ======================================================================

      Name: gm110360 Date: 10/07/2002


      FULL PRODUCT VERSION :
      java version "1.4.1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
      Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)


      FULL OPERATING SYSTEM VERSION :
      Microsoft Windows XP [version 5.1.2600]


      EXTRA RELEVANT SYSTEM CONFIGURATION :
      French retail version
      Service Pack 1 installed (2600.xpsp1.020828-1920)

      A DESCRIPTION OF THE PROBLEM :
      The icon in System tray for the Java Console is displaying
      internationalized text, but they are displayed in their UTF-
      8 encoding instead of the actual characters.
      Not dramatic for European Latin-based languages, but the
      menu would be unusable with Asian, Greek, Russian
      languages...

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      On an international version of Windows XP, just runs any
      Java applet (from Netscape Navigator, because applets do
      not work since Internet Explorer Service Pack 1).
      Enable the Java console and close it. Try to reopen the
      console from the system tray, you'll see the incorrectly
      displayed menu, which interprets the UTF-8 encoded strings
      returned from a JNI interface (such as GetStringUTF), and
      uses it directly to build GUI menu items with the Windows
      ANSI interface.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      The JNI interface used by the system tray on Windows should
      not use the UTF-8 strings, but directly the Java native UTF-
      16 encoding, which is compatible with the Unicode APIs.
      For Windows 95/98/98/SE/ME, there should be a test if the
      MS Unicode layer is installed, and then it should use the
      Unicode Windows APIs directly. In other cases, there should
      be a wrapper that would convert the UTF-16 characters into
      the OS-locale-specific ANSI encoding (windows1252,
      windows1250, Cp950, ...) using the only supported function
      on Windows 95 that converts indidual characters between
      Unicode UTF-16 and the OS native ANSI character set.
      The JNI interface should document a way to perform string
      conversions to the OS specific encodings (OEMCP, HALOEM,
      MACCP, ANSICP), depending on the usage of the Unicode
      string, and the current codepage settings (OEMCP) in the
      user's environment if using console APIs.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      No error

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      Not related to any source program. This is part of the core Java runtime
      environment.
      ---------- END SOURCE ----------

      CUSTOMER WORKAROUND :
      None (unless the user can set an alternate usable locale
      for the core engine, such as English, and the user
      understands the English language).
      (Review ID: 165337)
      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            kcolfersunw Kieran Colfer (Inactive)
            Reporter:
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: