JDK-4758969 : Rightclicking displays garbage letters
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_98,windows_xp
  • CPU: x86
  • Submitted: 2002-10-07
  • Updated: 2003-07-03
  • Resolved: 2003-06-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.1_05 05Fixed
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)
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.4.1_05 FIXED IN: 1.4.1_05 INTEGRATED IN: 1.4.1_05
14-06-2004

EVALUATION Please evaluate whether this is reproducible in mantis. thx! ###@###.### 2003-02-14 ###@###.### 2003-03-07 I haven't checked it in a build, but as far as I can see these strings were actually removed/changed for the Mantis Beta putback - looking at the file diffs, we get: sccs diffs -r 1.18 resource_sv.rc ------- resource_sv.rc ------- 19,22c19,22 < IDS_MENU_SHOW "��ppna systemf��nster" < IDS_MENU_HIDE "St��ng systemf��nster" < IDS_MENU_DISABLE "St��ng av" < IDS_MENU_ABOUT "Om Java" --- > IDS_MENU_SHOW "��ppna system&f��nster" > IDS_MENU_HIDE "St��ng system&f��nster" > IDS_MENU_DISABLE "&D��lj statusikon" > IDS_MENU_ABOUT "&Om Java Technology" As far as I can see, the encodings for the strings are OK in our current files. This is being reproduced in 1.4.1_03 testing. We need to fix it for 1.4.1_04. The files that need to be fixed: j2se/ext/plugin/src/win32/jpishare/resource_sv.rc There are indeed some strange characters in the source file. Please work with Honza to get this fixed. ###@###.### 2003-05-28 ###@###.### 2003-05-30 ******** l10n evaluation template - begin *********** Evaluation : I'm not sure how these keep getting mangled......... sccsdiff info (e.g. sccs diffs -r1.30 1.31 Activator_fr.java): sccs diffs resource_sv.rc ------- resource_sv.rc ------- 19,21c19,21 < IDS_MENU_SHOW "?ppna systemf??nster" < IDS_MENU_HIDE "St??ng systemf??nster" < IDS_MENU_DISABLE "St??ng av" --- > IDS_MENU_SHOW "?ppna systemf?nster" > IDS_MENU_HIDE "St?ng systemf?nster" > IDS_MENU_DISABLE "St?ng av" List file(s) to be delivered : ext/plugin/src/win32/jpishare/resource_sv.rc Target Build : 1.4.1_04 Additional Info : Checked on Visual C++ - looks OK now. ******** l10n evaluation template - end*********** ###@###.### 2003-08-01 ------------------------------- Fix of right click plugin icon menu has been verified on Windows XP Pro Swedish using j2re-1_4_1_05-fcs-bin-b01-windows-i586-i-09_jul_2003.exe
01-08-2003