JDK-6266893 : Regression: ja text on Window title is missing in Sol. 10 and in Linux platform with mustang b35
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2005-05-06
  • Updated: 2011-01-19
  • Resolved: 2005-07-22
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.
JDK 6
6Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
Regression: with ws/j2se/src/share/test/java2d/LSD/LocaleSpecificDisplay.java test
the rendered text string on Window title is missing on Sol. 10 and on Linux platforms (RH AS 3.0 and JDS 3), with mustang b35 build

To reproduce:
1. Get the test from
/net/koori/jdk/6.0/promoted/latest/ws/j2se/src/share/test/java2d/LSD
2. On a Solaris Sparc 10 (or RH AS 3), set locale to "ja"
3. compile LocaleSpecificDisplay.java
4. java LocaleSpecificDisplay
5. Notice that 
- on RH AS 3, the Window title is blank,
- on Sol. 10, the Window title shows this string: "sun-awt-X11-XFramePeer"
	(snapshot is attached:jbat-sol10-failure)
- on Windows XP, the test passed (a snap shot is attached: jbat-test)
6. The same test passed with mustang build b34 on all platforms

###@###.### 2005-05-06 23:33:03 GMT
###@###.### 2005-05-06 23:47:42 GMT

Comments
EVALUATION Most probably a duplicate of 6269884. I've tested it on Solaris 10 in ja (EUC) and am pretty convinced a fix to 6269884 (dated 2005-07-14) does repair this. Closing as a duplicate.
22-07-2005

EVALUATION Possible duplicate of 6269884?
22-07-2005

EVALUATION I reproduced the bug by setting LANG to "ja_JA.utf8". With b34 the title contains some Japanese characters, b35 does not. With the workspace with the fix for 6266858 the problem is not reproducible. It is sad to see that for many other languages either title doesn't display the strings (in any build) or they are not displayed in the test pane (text fields, buttons and so on). I hope that the fix for 4929291 will resolve the problems in titles. ###@###.### 2005-05-26 13:29:25 GMT In the test /net/koori/jdk/6.0/promoted/latest/ws/j2se/src/share/test/java2d/LSD the following language strings are available: de, fr, ru, ja if you have locale setup correctly, the string displayed correctly, to set the locale in Solaris, do the following: > setenv LC_ALL ja this bug is still reproducible in b41 for ja locale, other one byte locale (de, fr, ru) all display correctly without problems. ###@###.### 2005-06-20 18:06:41 GMT Clarification: 1. One byte locale didn't seem have problem all along. 2. Failures are on Sol. 10 and Linux platforms. 3. To set locale, setting LANG alone is not enough, you'll need to set LC_ALL. ###@###.### 2005-06-20 18:56:43 GMT The bug is not reproducible in my workspace, but is reproducible in the promoted build. It seems like some classes or the whole fix is missing in the promoted build. The locale I checked is ja_JP.utf8 BTW, with b34 the bug is "reproducible" with LC_ALL=ja, but I don't think that is a bug. You can not set just everything to LC_ALL or LANG and expect C libs/X11 lib to figure out the locale. The rule of thumb is to do "locale -a" and then pick one of those - and that is still not guaranteed to work, sometimes you need to upper case the suffix. It is a known limitation of X11/C libs, it is not a Java problem. ###@###.### 2005-06-22 17:41:54 GMT So you're saying the fix is not in the latest promoted build (b41)? I don't quite understand, I didn't have problem testing with the same test for the previous releases such as 1.4.2, 1.5 and 1.6 up till b34, to me this is a regression in Java, is it not? ###@###.### 2005-06-22 19:10:37 GMT We checked that on ###@###.### machine there is such a locale as "ja", so the value is valid. We also found that on b41 WM_NAME property is empty, while on MToolkit or XToolkit(b34) it contains COMPOUND_TEXT string corresponding to japanese text. ###@###.### 2005-06-22 20:23:26 GMT Just did the bringover from master, clean build - the bug is not reproducible in my build, but is reproducible with b41 ###@###.### 2005-06-22 20:29:19 GMT I took the PIT build from June 16th - the bug is not reproducible ###@###.### 2005-06-22 20:31:00 GMT We checked PIT build on ###@###.###'s machine - the bug is still reproducible ###@###.### 2005-06-22 20:36:09 GMT
26-05-2005