Menu

#3157 Norwegian/Danish characters ÆØÅ inconsistent

normal bug
closed-fixed
5
2008-09-12
2008-09-04
No

When changing the default encoding in jEdit 4.3 PRE15 to UTF-8, the characters æøå/ÆØÅ are not registered by input from the keyboard.

Restarting jEdit fixes this temporarily, however, when alt-tabbing back and forth into the application, the problem recurs.

Furthermore, the problem can once again (after alt-tabbing back and forth) be fixed by first typing something other than æøå/ÆØÅ, and the characters will then work.

This is on Windows Vista SP1 / Java 1.6.0 (build 1.6.0_01-b06).

The problem persists on several computers with equal setups.

Discussion

  • Kazutoshi Satoda

    Logged In: YES
    user_id=1483238
    Originator: NO

    Are you sure thant this doesn't happen with another default encoding
    except UTF-8? I don't think the default encoding affects keyboard input.
    It is used for file I/O.

    Please use [Utilities] > [Troubleshooting] > [Keyboard Tester...], and
    report logs for both working and not woking case.

     
  • Martin Sommervold

    You are correct, this also happens when other default encodings are selected. However, i did notice something weird with the keyboard tester;

    When i tried to enter either æøå/ÆØÅ as the first character into the keyboard tester dialouge, the jedit content area registered the input, but the character itself was not displayed in the input box used by the keyboard tester.

    Similarly to the text area problem as described in my bug report, this issue resolves itself if a different key is entered before æøå (the special characters become visible in the input box after entering "k" for instance).

    Working case
    Here is a log from the keyboard tester when i did NOT use æøå to begin with:

    Event KEY_PRESSED,keyCode=0x41,keyChar=0x61,modifiers=0x0,consumed=0 filtered
    Event KEY_TYPED,keyCode=0x0,keyChar=0x61,modifiers=0x0,consumed=0 passed
    ==> Translated to <0,61>
    Event KEY_RELEASED,keyCode=0x41,keyChar=0x61,modifiers=0x0,consumed=0 passed
    Event KEY_PRESSED,keyCode=0x42,keyChar=0x62,modifiers=0x0,consumed=0 filtered
    Event KEY_TYPED,keyCode=0x0,keyChar=0x62,modifiers=0x0,consumed=0 passed
    ==> Translated to <0,62>
    Event KEY_PRESSED,keyCode=0x43,keyChar=0x63,modifiers=0x0,consumed=0 filtered
    Event KEY_TYPED,keyCode=0x0,keyChar=0x63,modifiers=0x0,consumed=0 passed
    ==> Translated to <0,63>
    Event KEY_RELEASED,keyCode=0x42,keyChar=0x62,modifiers=0x0,consumed=0 passed
    Event KEY_RELEASED,keyCode=0x43,keyChar=0x63,modifiers=0x0,consumed=0 passed
    Event KEY_PRESSED,keyCode=0x44,keyChar=0x64,modifiers=0x0,consumed=0 filtered
    Event KEY_TYPED,keyCode=0x0,keyChar=0x64,modifiers=0x0,consumed=0 passed
    ==> Translated to <0,64>
    Event KEY_RELEASED,keyCode=0x44,keyChar=0x64,modifiers=0x0,consumed=0 passed

    ------------------------

    Not working case
    Here is a log from the keyboard tester when i DID use æøå to begin with, then folloed up with the letter "k", then followed up with æøå afterwards (where "kæøå" is the only text displayed in the input box):

    Event KEY_PRESSED,keyCode=0x0,keyChar=0xe6,modifiers=0x0,consumed=0 filtered
    Event KEY_TYPED,keyCode=0x0,keyChar=0xe6,modifiers=0x0,consumed=0 filtered
    Event KEY_RELEASED,keyCode=0x0,keyChar=0xe6,modifiers=0x0,consumed=0 passed
    Event KEY_PRESSED,keyCode=0x0,keyChar=0xf8,modifiers=0x0,consumed=0 filtered
    Event KEY_TYPED,keyCode=0x0,keyChar=0xf8,modifiers=0x0,consumed=0 filtered
    Event KEY_RELEASED,keyCode=0x0,keyChar=0xf8,modifiers=0x0,consumed=0 passed
    Event KEY_PRESSED,keyCode=0x0,keyChar=0xe5,modifiers=0x0,consumed=0 filtered
    Event KEY_TYPED,keyCode=0x0,keyChar=0xe5,modifiers=0x0,consumed=0 filtered
    Event KEY_RELEASED,keyCode=0x0,keyChar=0xe5,modifiers=0x0,consumed=0 passed
    Event KEY_PRESSED,keyCode=0x4b,keyChar=0x6b,modifiers=0x0,consumed=0 filtered
    Event KEY_TYPED,keyCode=0x0,keyChar=0x6b,modifiers=0x0,consumed=0 passed
    ==> Translated to <0,6b>
    Event KEY_RELEASED,keyCode=0x4b,keyChar=0x6b,modifiers=0x0,consumed=0 passed
    Event KEY_PRESSED,keyCode=0x0,keyChar=0xe6,modifiers=0x0,consumed=0 filtered
    Event KEY_TYPED,keyCode=0x0,keyChar=0xe6,modifiers=0x0,consumed=0 passed
    ==> Translated to <0,e6>
    Event KEY_RELEASED,keyCode=0x0,keyChar=0xe6,modifiers=0x0,consumed=0 passed
    Event KEY_PRESSED,keyCode=0x0,keyChar=0xf8,modifiers=0x0,consumed=0 filtered
    Event KEY_TYPED,keyCode=0x0,keyChar=0xf8,modifiers=0x0,consumed=0 passed
    ==> Translated to <0,f8>
    Event KEY_RELEASED,keyCode=0x0,keyChar=0xf8,modifiers=0x0,consumed=0 passed
    Event KEY_PRESSED,keyCode=0x0,keyChar=0xe5,modifiers=0x0,consumed=0 filtered
    Event KEY_TYPED,keyCode=0x0,keyChar=0xe5,modifiers=0x0,consumed=0 passed
    ==> Translated to <0,e5>
    Event KEY_RELEASED,keyCode=0x0,keyChar=0xe5,modifiers=0x0,consumed=0 passed

    Hope this helps. Thank you for all your efforts!

     
  • Kazutoshi Satoda

    • summary: Norwegian/Danish characters ÆØÅ inconsistent in UTF-8 --> Norwegian/Danish characters ÆØÅ inconsistent
    • status: open --> closed-fixed
     
  • Kazutoshi Satoda

    Thank you for the report. It helped very much to investigate the problem.

    Fixed in r13654.

     
  • Kazutoshi Satoda

    • assigned_to: nobody --> k_satoda
     
  • faical faical

    faical faical - 2008-12-09

    try this solution :
    open /jedit/bin/jedit with any text editor
    add this line in the bigining XMODIFIERS=''
    save and start jedit
    it work perfect for me in jedit and netbeans6.5

     

Log in to post a comment.

MongoDB Logo MongoDB