JDK-4780503 : IME subsystem appears to snaffling 8 bit chars on Linux
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt:i18n
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2002-11-18
  • Updated: 2003-11-10
  • Resolved: 2003-11-10
Related Reports
Duplicate :  
Description
Name: gm110360			Date: 11/18/2002


FULL PRODUCT VERSION :
Netscape 7, 1.4.1 plugin

FULL OPERATING SYSTEM VERSION : Suse 8
Linux twix 2.4.18-64GB-SMP #1 SMP Wed Mar 27 13:58:12 UTC
2002 i686 unknown
glibc-2.2.5-38

A DESCRIPTION OF THE PROBLEM :
It appears that the IME is being enabled by default on Java
components. This means that you only receive KeyTyped and
KeyReleased events for 8 bit characters (e.g pound signs in
english and e acute with french)

calling enableIME(false) fixs the problem


For western euro locales surely the IME should be disabled
be default ?

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.Load the following applet on a linux X server with a GB
input locale
2.Type "?" (pound sign) not that you get Typed and released
events only

EXPECTED VERSUS ACTUAL BEHAVIOR :
I would expect pressed,typed and released events

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
mport java.awt.*;
import java.applet.*;
import java.awt.event.*;
import java.lang.reflect.*;

public class KeyCanvas extends Applet implements KeyListener
{
   public KeyCanvas()
   {
   }

   public void init()
   {

        addKeyListener(this);
   }

   public void keyPressed(KeyEvent e)
   {
       System.err.println("keyPressed "+e);
   }

   public void keyReleased(KeyEvent e)
   {
       System.err.println("keyReleased "+e);
   }

   public void keyTyped(KeyEvent e)
   {
       System.err.println("keyTyped "+e);
   }
}
---------- END SOURCE ----------

CUSTOMER WORKAROUND :
disable the IME
(Review ID: 167177) 
======================================================================

Comments
EVALUATION From websters.com: snaf��fle [Audio pronunciation of snaffling] ( P ) Pronunciation Key (snfl) n. A bit for a horse, consisting of two bars joined at the center, as by a joint. tr.v. snaf��fled, snaf��fling, snaf��fles To put on or control with a snaffle. -------------------------------------------- Please explain you usage of this word in this context. Please provide information regarding what IME is? Please provide information as to why you would expect to recieve these events? ###@###.### 2002-11-18 This is the same issue that will be addressed in 4490692. Closing as a duplicate. ###@###.### 2003-11-10
18-11-2002