#720 Damaged cyrillic text input

None
works-for-me
nobody
None
1
2015-04-01
2013-04-22
irix
No

Text editor has some major problems with editing cyrillic text. Editing a large file with such characters leads to illogical cursor movements, garbling and therefore to the data loss.

It's hard to catch a minimal working bug example. Easiest way is to open attached file. It contains 29 bytes of UTF-8 cyrillic text and can be generated in UTF-8 enabled shell by

echo "вероятностей 123" > foo.tex

Then open a file in the TeXstudio, place a cursor just before the space and after letter "й" and press backspace. Text should be "вероятносте 123" but it transforms to "вероятностй 123".
I attached two screenshots, before and after backspacing. Bug appears only in a previously saved file, can't reproduce it in a freshly created editor tab.


mac os x 10.8.2, english locale
TeXstudio 2.5.2 (SVN 3651M)
Using Qt Version 4.8.4, compiled with Qt 4.8.4 R

1 Attachments

Discussion

  • irix
    irix
    2013-04-22

    Screenshot before

     
    Attachments
  • irix
    irix
    2013-04-22

    Screenshot after

     
    Attachments
  • Tim Hoffmann
    Tim Hoffmann
    2013-04-24

    The editor component we use (QCodeEdit 2) has some issues with unicode. Version 3 is under development and should fix these. However it will still take some time.

     
  • I tried it on Linux, but there it seems to work

    How do you place the cursor? Mouse/Keys?

     
  • irix
    irix
    2013-05-13

    I remember this bug only at Mac version. Placed a cursor by keys in a example and by mouse/keys in my large document where I noticed a bug first time.

     
  • Tim Hoffmann
    Tim Hoffmann
    2015-03-07

    works as expected in TXS 2.9.0 (OSX)

     
  • Tim Hoffmann
    Tim Hoffmann
    2015-03-07

    • status: open --> fixed
    • Group: -->
     
  • irix
    irix
    2015-03-16

    Hello. I checked a new version 2.9.0 on OS X 10.10.
    My bug is reproduced perfectly. Can be reproduced even with a new OS user (never used texstudio).
    Could we reopen a ticket? Do you need special log files or maybe video of text input?

     
  • Tim Hoffmann
    Tim Hoffmann
    2015-03-16

    Works here. Jan, can you reproduce the bug?

    @irix: Please recheck that the error happens with exactly the file that you uploaded here (please dowload and open in TXS). Already in the screenshot "before" there seems to be an unnaturally large whitespace distance (which might be an indicator that there's already something wrong with the interpretation of that text). However, I do not see this extra whitespace here.

     
    • irix
      irix
      2015-03-17

      Tim, you are right, screenshots are about text with two spaces (echo-ed two spaces to the file) but behaviour was the same.

      I tried to change editor font from default 'lucida sans typewriter' to any other font and the bug dissappears! Fonts 'Lucida Sans', 'Lucida Sans Unicode', 'Courier' work perfectly.

       
  • Tim Hoffmann
    Tim Hoffmann
    2015-03-16

    • status: fixed --> open
     
  • Tim Hoffmann
    Tim Hoffmann
    2015-03-22

    Still not reproducible here. I tried with Lucida Sans Typewriter ttf font downloaded from here: http://www.911fonts.com/font-download/download_LucidaSansTypewriterRegular_5902.htm

    If you are still interested to get this fixed. Please provide the font which exhibits the bug. Otherwise I'll mark this as "won't fix" because it's a very specialized bug.

     
  • irix
    irix
    2015-03-23

    I attached a problem font. It was installed by Microsoft Office. Also tried to clear font caches (didn't help). Lucida font from your link works good. I think it's a problem in Microsoft font.

     
  • irix
    irix
    2015-03-23

    Sorry, I posted an empty font file with a resource fork (where actual font is stored). Extracted ttf-s with found utility and reattached them here.

     
    Attachments
  • Tim Hoffmann
    Tim Hoffmann
    2015-04-01

    I cannot even reproduce it with the font you provided, but I agree that it's most likely a problem in the font. Therefore I'll close the issue.

     
  • Tim Hoffmann
    Tim Hoffmann
    2015-04-01

    • status: open --> works-for-me