JDK-4707542 : Can't type some multi-character sequences with Swedish keyboard on Linux
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.1,5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux,windows_2000
  • CPU: x86
  • Submitted: 2002-06-25
  • Updated: 2005-11-01
  • Resolved: 2005-11-01
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
Name: rmT116609			Date: 06/25/2002


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

FULL OPERATING SYSTEM VERSION : RedHat 7.3
glibc-2.2.5-34
 
 
ADDITIONAL OPERATING SYSTEMS :

EXTRA RELEVANT SYSTEM CONFIGURATION :
X-server: XFree86 4.20 (The standard X server in RedHat 7.3)
  
Swedish 104 key keyboad
 
In the InputDevice section of the /etc/X11/XF86Config-4 file i have
the following settings:
 
Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option  "Xleds"         "1 2 3"
        Option  "XkbRules"      "xfree86"
        Option  "XkbModel"      "pc104"
        Option  "XkbLayout"     "se"
EndSection
 
 
 
 
  
  


A DESCRIPTION OF THE PROBLEM :
Dead keys followed by space doesnt generate a character in swing
components on Linux if a on non US key boards is used.
I have experienced the bug with a Swedish keyboard
    
    
  To write a tilde character I write a tilde character on a Swedish
keyboard I would press "ALT-GR-tilde" followed by "space". When I
do this no character seams to be written to swing text components
like JTextField and JTextArea.
    
    
Since tilde is used in URL, this bug prevents the use of java on
Linux for internet related GUI applications.
    
Problems with dead keys on non US keyboards have bin around for
almost two years. Bug 4379138  have bin closed as fixed. But this
related problem with space after dead keys still remain. Or
is it the same problem?


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Use a Swedish keyboard (Any non US Keyboard where ALT, and ALT-GR
   is two distinkt keys could perhaps verify be uset to verify bug,
   but I have no keyboards to  test that)
  
  
2. Make sure that you have configured the InputDevice section of your
   /etc/X11/XF86Config-4 to look like:
  
	  
  
Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option  "Xleds"         "1 2 3"
        Option  "XkbRules"      "xfree86"
        Option  "XkbModel"      "pc104"
        Option  "XkbLayout"     "se"
EndSection
  
  
3. Compile and run the following program:
 
  
  
4: Type the key sequence [Alt Gr]-[tilde] followed by [space]
  
  


EXPECTED VERSUS ACTUAL BEHAVIOR :
Expected result:
 A tilde character should have turned up in the JTextField.
 But it doesn't.


REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import javax.swing.*;
import java.awt.event.*;
   
class TestNoDeadKeysAfterSpace extends JFrame implements KeyListener{
  
        JTextField text=new JTextField(10);
        public TestNoDeadKeysAfterSpace(){
                text.addKeyListener(this);
                getContentPane().add(text);
        }
  
        public void keyTyped(KeyEvent e){
                    System.out.println(e+"\n------------------------");
        }
  
        public void keyPressed(KeyEvent e){
                System.out.println(e+"\n-----------------------------");
  
        }
  
        public void keyReleased(KeyEvent e){
                System.out.println(e+"\n---------------------------");
        }
  
        public static void main(String[] arg){
                TestNoDeadKeysAfterSpace t=new TestNoDeadKeysAfterSpace();
                t.pack();
                t.setVisible(true);
        }
}
---------- END SOURCE ----------
(Review ID: 158316) 
======================================================================

Comments
EVALUATION Fixed for Linux (and I believe Solaris, too) with other bugs under 4360364 umbrella.
01-11-2005

PUBLIC COMMENTS .
17-09-2004

EVALUATION Commit to fix in future release: mantis or tiger depending on time. ###@###.### 2002-06-27 This is clearly a different problem than any of the other dead key bugs that have been filed in the past: the keyboard is different, the method of reproducing is different, etc. Most likely fix in Tiger. ###@###.### 2002-07-16
16-07-2002