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

Can't switch to Chinese input methods

XMLWordPrintable

    • 1.1.6
    • x86
    • windows_95
    • Not verified



        Name: mf23781 Date: 10/09/97


        Internationalization problem #2, reported by Lotus BeanMachine
        folks: (by Michael Fraenkel)

        For Double byte languages like chinese(Tawain), etc, if you start out
        in english mode and switch
        keyboard mode(cause the IME to come up), then you can't enter the characters.
        It is broken in simple
        Chinese(Windows 95 version #4.00.950) and is broken in the Tawain
        chinese(Windows 95 version #4.00.950B). It works
        in Japanese(Windows 95 version #4.00.950a) and works in Korean(Windows 95
        version 4.00.950a). The problem is that
        in the languages that don't work, the Windows 95 OS is passing the wrong
        character set. The FIX, works in all
        the languages and all the versions, instead of cacheing the passed in
        character set, just query the current character set.
        This bug is in the awt_Component.cpp file, in the following method they need to
        add the query of the current
        character set.

        MsgRouting AwtComponent::WmInputLangChange(UINT charset, UINT hKeyboardLayout)
        {

        //John Boezeman - Comment out this line, Win95 was passing in 136 for
        chinese(Tawain) instead of 950
        // m_CharSet = charset;

        //John Boezeman - Add this line
            m_CharSet = ::GetACP();


            m_hKeyboardLayout = (HKL)hKeyboardLayout;
            return mrConsume;
        }

        ======================================================================

              sherman Xueming Shen
              miflemi Mick Fleming
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: