[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: [PATCH] KSpell Unicode problem (BR#86940)
From: Mashrab Kuvatov <kmashrab () sat ! physik ! uni-bremen ! de>
Date: 2005-02-14 16:53:15
Message-ID: 200502141753.22253.kmashrab () sat ! physik ! uni-bremen ! de
[Download RAW message or body]
[Attachment #2 (multipart/mixed)]
Hi all,
could anyone have look at the patch and commit it if everything is
fine? There is some more info on the issue in BR#86940.
Cheers,
Mashrab.
PS. Actually, it is a diff to CVS.
--
Mashrab Kuvatov
Ph.D student
University of Bremen, IUP
Home-page: www.sat.uni-bremen.de/members/mashrab
PGP key: www.uni-bremen.de/~kmashrab/kmashrab.asc
["kspell.cpp.diff" (text/x-diff)]
Index: kspell.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdeui/kspell.cpp,v
retrieving revision 1.130
diff -u -3 -p -r1.130 kspell.cpp
--- kspell.cpp 25 Nov 2004 06:28:55 -0000 1.130
+++ kspell.cpp 12 Feb 2005 17:09:48 -0000
@@ -1010,20 +1010,6 @@ void KSpell::check2( KProcIO * )
{
dlgresult=-1;
- // for multibyte encoding posinline needs correction
- if (ksconfig->encoding() == KS_E_UTF8) {
- // kdDebug(750) << "line: " << origbuffer.mid(lastlastline,
- // lastline-lastlastline) << endl;
- // kdDebug(750) << "posinline uncorr: " << posinline << endl;
-
- // convert line to UTF-8, cut at pos, convert back to UCS-2
- // and get string length
- posinline = (QString::fromUtf8(
- origbuffer.mid(lastlastline,lastline-lastlastline).utf8(),
- posinline)).length();
- // kdDebug(750) << "posinline corr: " << posinline << endl;
- }
-
lastpos = posinline+lastlastline+offset;
//orig is set by parseOneResponse()
[Attachment #6 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic