JDK-4765333 : Italian dead keys on US Keyboard don't work with space key on Linux
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2002-10-18
  • Updated: 2005-12-02
  • Resolved: 2005-12-02
Related Reports
Duplicate :  
Relates :  
Description
Name: sv35042			Date: 10/18/2002


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

FULL OPERATING SYSTEM VERSION :
Linux Red Hat 7.3
glibc-2.2.5-34
Kernel 2.4.18-3

ADDITIONAL OPERATING SYSTEMS :
Linux Debian "potato", "woody"


EXTRA RELEVANT SYSTEM CONFIGURATION :
My keyboard is : US Keyboard 104 keys

When install Red Hat 7.3 :
- Add Support for Italian language (but is the same with
other language like french or german)
- Use 104 US intl (w/ dead keys)
- Enable dead keys

So, after the installation, in my /etc/X11/XF86Config-4 i have:

Option "XkbRules"   "xfree86"
Option "XkbModel"   "pc105"
Option "XkbLayout"  "us_intl"
Option "XkbVariant" "basic"

A DESCRIPTION OF THE PROBLEM :
Dead keys on US Keyboard doesn't work with Linux in JDK 1.4

I have a Red Hat 7.3 with a US Keyboard, but i'm italian and
i need ����, ����, ����, ��M-^Y, etc...

So i enable the dead keys... When i press "'" + "a" => "����"
or "'" + SPACE => "'"

Linux applications works well (Gnome or KDE), but Java JFC
apps no!

When i press in a JFC application, for example, the key "'"
+ SPACE i cannot see the "'" char! Otherwise, when i press
"'" + "a" i have correctly "����"

Reproduce this problem is very easy, execute the JFC demo
Notepad included with JDK on a Red Hat 7.3 with deadkeys
enabled and italian support (or another european language).

I'have the same problem with JDK 1.4.1 beta.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. enable dead keys and italian support on a Red Hat 7.3
with a US keyboard

2. execute "java -jar $JAVA_HOME/demo/jfc/Notepad/notepad.jar"

3. Try to press, for example, the key "~" + SPACE or the key
"'" + SPACE, nothing happens!

EXPECTED VERSUS ACTUAL BEHAVIOR :
I expected to see the char "'"  when i press "'" + SPACE
(also for ~,",`)

ERROR MESSAGES/STACK TRACES THAT OCCUR :
there's no error message.
"'", "~", "`", """ (that are dead-keys) doesn't work with SPACE keypress!

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
Simply execute the JFC Notepad demo included with JDK...
---------- END SOURCE ----------

(Review ID: 159736) 
======================================================================

Comments
EVALUATION (1) Should work in Mustang since b40. (2) Fixed with umbrella bug 4360364. (3) I'm afraid the fix cannot be easily backported.
02-12-2005

WORK AROUND AWT widgets seem to work fine: it's just Swing that has problems. ###@###.### 2002-10-23
23-10-2002

EVALUATION Emailed submitter for more information on Oct. 18, 2002 (see Comments). ###@###.### 2002-10-18 Attached submitter's xmodmap and XF86Config. ###@###.### 2002-10-21 AWT widgets work: dead key followed by space produces the expected character. However, Swing components do not work. I'll probably have to store the state (that a dead key was pressed) to fix this for Swing. I guess there should be no repercussions for multi-key sequences (AltGraph and dead key, or shift and dead key). ###@###.### 2002-10-23 Probably a duplicate of 4799499. ###@###.### 2003-01-23
23-10-2002