United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6964917 EUDC char. is not displayed, but other chinese char. is done in WinVista and Win7 in jdk5u22
JDK-6964917 : EUDC char. is not displayed, but other chinese char. is done in WinVista and Win7 in jdk5u22

Details
Type:
Bug
Submit Date:
2010-06-29
Status:
Closed
Updated Date:
2011-10-10
Project Name:
JDK
Resolved Date:
2011-10-10
Component:
client-libs
OS:
windows_vista
Sub-Component:
java.awt:i18n
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0u22
Fixed Versions:
5.0u33 (b08)

Related Reports
Backport:
Backport:
Backport:
Relates:
Relates:

Sub Tasks

Description
When CU inputs a user defined char. (gaiji) in JTextArea, the defined char. is not displayed
but other chinese char. appears in the JTextArea.


OS
-------
Windows Vista business SP1(Japanese, x86)
Windows Vista Ultimate SP1(Japanese, x86)
Windows 7 Pro. (Japanese, x86)

JDK ver.
-------
JDK5u22(x86)


REPRODUCE
-------
1. Invoke "eudcedit" command in command prompt window
2. Create a user defined char. and asign 0xF040(U+E000) to the char.
3. Execute TableExample.jar under demo\jfc\TableExample
  (invoke "java -jar TableExample.jar)
  One window including some JTextAreas shows up.
4. Input some Japanese char. in MS-IME and press "F5"
  IME pad shows up.
5. Select(click) the char. defined at the above step 2

  The char. defined at step 2 does not show up but another chinese char. does.

NOTE:
-This problem does not ossur in WindowsXP pro.(Japanese, SP2)
-This problem does not occur in JDK6u18.

                                    

Comments
EVALUATION

On Windows, HKSCS font includes some characters defined in PUA (Private Use Area, Range:E000???F8FF), and the font's file has been specified in the general font fallback path of Java.
With J2SE 5.0, characters in PUA are displayed instead of user's defined characters (aka Gaiji). So, we remove the HKSCS
font file from general fallback path and add it only to the path for Chinese locale.

Note that this bug is reproducible on Windows XP if the HKSCS font is installed.
                                     
2010-07-08
SUGGESTED FIX

Attached (fontonfig.properties.6964917).
                                     
2010-07-15



Hardware and Software, Engineered to Work Together