Bug 98713 - spellchecker in kwrite and locale UTF8. Text aligning is wrong.
Summary: spellchecker in kwrite and locale UTF8. Text aligning is wrong.
Status: RESOLVED DUPLICATE of bug 86940
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-06 19:12 UTC by Peter Volkov
Modified: 2005-02-19 09:53 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Illustration of the problem. (113.49 KB, image/png)
2005-02-06 19:23 UTC, Peter Volkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Volkov 2005-02-06 19:12:36 UTC
Version:           4.3 (using KDE 3.3.2, Gentoo)
Compiler:          gcc version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
OS:                Linux (i686) release 2.6.10-gentoo-r6

Hello.

When I check spelling for russian text in utf8 encoding in kwrite it seems that position of blue rectangular in the text (misspeled word) is wrong. Next post will include picture that illustrates the problem.
Comment 1 Peter Volkov 2005-02-06 19:23:54 UTC
Created attachment 9452 [details]
Illustration of the problem.

Look in the picture. Red rectangular both in kspell's dialog and kwrite's
window shows wrong written word. You can see that blue highlighting of the text
is wrong in kwrite window. It's seems that the string's length calculation is
wrong...
Now look at the green rectangular. In kwrite's window you can see the whole
word, in kspell's dialog window it's cutted...
And you see the blue rectangular. It is the end of word in red rectangular
again...

Note: text is in utf8 encoding.

Thank you for your attention.
Comment 2 Peter Volkov 2005-02-06 19:50:14 UTC
Oh. The same problem with kate.

And more... When I replace word with sugdested variant the word inserts in the text in wrong place... Where kwrite highlightes text there it insertes it!

Thank you for your attention, again,
_________
Peter.
Comment 3 Peter Volkov 2005-02-06 20:00:07 UTC
And I hope the last, addition.

Now I'm sure the problem is my locale! If I start kwrite like this:
env LC_ALL=ru_RU.KOI8-R kwrite
so emulating for libc(and maybe other libs) 8bit locale, spell checker highlightes text in the right place.

Thank you again, for your work on kde.
Comment 4 Anders Lund 2005-02-18 20:54:09 UTC
Could you look at http://bugs.kde.org/show_bug.cgi?id=86940 and see if this is similar? If so, that is beeing worked on in kdelibs/kspell.
Comment 5 Peter Volkov 2005-02-19 08:02:07 UTC
Yes. It is similar. So I think it's time to mark this bug as duplicate.
Sorry. I really searched before posting.
Comment 6 Anders Lund 2005-02-19 09:53:32 UTC
Peter: No problem, I just want to be sure :)
I hope a solution is found.

*** This bug has been marked as a duplicate of 86940 ***