Menu

bug: cyrillic chars in title bar appear as ?

al_9x
2009-06-01
2012-11-13
  • al_9x

    al_9x - 2009-06-01

    xp32 sp3 english, N++  5.4.2 unicode

    the title bar shows a path containing unicode cyrillic chars

     
    • al_9x

      al_9x - 2009-06-02

      can anyone confirm this?

       
  • al_9x

    al_9x - 2011-02-27

    This bug is still present in 5.8.7.  Why is a UNICODE version unable to display unicode chars?

     
  • cchris

    cchris - 2011-02-27

    Use a system font that supports cyrillic characters, as it is Windows, not N++, which draws the caption text it is being told to.

    CChris

     
  • al_9x

    al_9x - 2011-02-27

    Use a system font that supports cyrillic characters

    The default title bar font in XP is Trebuchet MS and it does support Cyrillic chars.  Other apps (Notepad, Notepad2) display the file name just fine, so this is a Notepad++ problem.

     
  • nofun

    nofun - 2011-02-27

    Cannot confirm: everything's fine here.

     
  • al_9x

    al_9x - 2011-02-27

    Your system language is Russian, if you want to confirm you need English XP with an en-us locale and a Unicode Cyrillic file name.

     
  • al_9x

    al_9x - 2011-03-01

    @cchris Do you acknowledge this as an npp bug?

     
  • François-R Boyer

    It is not an NPP bug, but a windows "problem".  I have an english XP and characters are correctly displayed in the title.  You need to ensure that Uniscribe is loaded, so that unicode code points are correctly mapped to font glyphs.  Verify that you have the following registry key value, then reboot your system:

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\LanguagePack]
    "SURROGATE"=dword:00000002
    

    Note that NPP does not yet correctly support (last time I tested it and checked the source code) characters outside the Basic Multiligual Plane (BMP), that is characters above code point 0xFFFF .  But Cyrillic characters are all in the BMP.

     
  • al_9x

    al_9x - 2011-03-01

    It is not an NPP bug, but a windows "problem"

    That's nonsense.  I tested on a clean xp sp3 vm. Notepad, Wordpad, IE, Notepad2 (another Scintilla editor) show Unicode Cyrillic file names in the title bar with no special configuration, only NPP shows question marks.

     
  • François-R Boyer

    Ok, then the problem is probably a plugin.  I installed a fresh copy of NPP version 5.8.7, with the "standard" plugins, and I got the same problem you have.  After removing NppTextFx plugin, I get a title with the correct characters.

    Is there someone maintaining TextFX?

     
  • Dave Brotherstone

    Unfortunately not.  And if you look at the code, you'll see why :)