Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4780503

IME subsystem appears to snaffling 8 bit chars on Linux

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.1
    • client-libs

      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)
      ======================================================================

            naoto Naoto Sato
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: