Version: 1.2.92 (using KDE 3.1.3) Installed from: compiled sources Compiler: gcc version 3.3 OS: Linux (i686) release 2.6.0-test5 When typing in a document (it only seems to happen to me with non root users), with some characters, like """, ",", ".", there is a new character inserted, sometimes is a box character, sometimes is a character. For example, when I type "", I obtain "" plus a box character. The result is in the attached file.
Created attachment 2463 [details] The result document with the strange characters.
Subject: Re: New: inserts unexpected characters when typing On Monday 15 September 2003 15:09, you wrote: > When typing in a document (it only seems to happen to me with non root users), with some characters, like """, ",", ".", there is a new character inserted, sometimes is a box character, sometimes is a character. > > For example, when I type "", I obtain "" plus a box character. The result is in the attached file. Hum this sounds like a keyboard bug to me. Does the same happen in other KDE programs? Qt-only programs? X-only programs? In the .kwd document I can see null characters - this is probably what shows up as a box for you. The fact that this null character gets inserted, is either an X bug or a Qt bug, key events are nothing KWord-specific.
Subject: RE: inserts unexpected characters when typing I've tried the same in kspread, kate and it does not happens. I've tried the same in xedit and it does not happens. Also, it did not happened in kword 1.2.1. More information, When I type in the middle of a word, two "", it insers the null , goes two characters to the right and inserts a white character. For example, if I type super-good, and then insert "" between pe, then I see sup""#e -good. See the new attachement. > -----Mensaje original----- > De: David Faure [mailto:faure@kde.org] > Enviado el: lunes, 15 de septiembre de 2003 16:17 > Para: jtorres@sia.es > Asunto: [Bug 64317] inserts unexpected characters when typing > > > ------- You are receiving this mail because: ------- > You reported the bug, or are watching the reporter. > > http://bugs.kde.org/show_bug.cgi?id=64317 > > > > > ------- Additional Comments From faure@kde.org 2003-09-15 > 16:16 ------- > Subject: Re: New: inserts unexpected characters when typing > > On Monday 15 September 2003 15:09, you wrote: > > When typing in a document (it only seems to happen to me > with non root users), with some characters, like """, ",", > ".", there is a new character inserted, sometimes is a box > character, sometimes is a character. > > > > For example, when I type "", I obtain "" plus a box > character. The result is in the attached file. > > Hum this sounds like a keyboard bug to me. Does the same happen in > other KDE programs? Qt-only programs? X-only programs? > > In the .kwd document I can see null characters - this is > probably what shows > up as a box for you. The fact that this null character gets > inserted, is either > an X bug or a Qt bug, key events are nothing KWord-specific. > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-6"> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12"> <TITLE>RE: [Bug 64317] inserts unexpected characters when typing </TITLE> </HEAD> <BODY> <P><FONT SIZE=2>I've tried the same in kspread, kate and it does not happens.</FONT> </P> <P><FONT SIZE=2>I've tried the same in xedit and it does not happens.</FONT> <BR><FONT SIZE=2>Also, it did not happened in kword 1.2.1.</FONT> </P> <P><FONT SIZE=2>More information, When I type in the middle of a word, two "", it insers the null , goes two characters to the right and inserts a white character.</FONT></P> <P><FONT SIZE=2>For example, if I type super-good, and then insert "" between pe, then I see sup""#e -good. See the new attachement.</FONT> </P> <P><FONT SIZE=2>> -----Mensaje original-----</FONT> <BR><FONT SIZE=2>> De: David Faure [<A HREF="mailto:faure@kde.org">mailto:faure@kde.org</A>]</FONT> <BR><FONT SIZE=2>> Enviado el: lunes, 15 de septiembre de 2003 16:17</FONT> <BR><FONT SIZE=2>> Para: jtorres@sia.es</FONT> <BR><FONT SIZE=2>> Asunto: [Bug 64317] inserts unexpected characters when typing </FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> ------- You are receiving this mail because: -------</FONT> <BR><FONT SIZE=2>> You reported the bug, or are watching the reporter.</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> <A HREF="http://bugs.kde.org/show_bug.cgi?id=64317" TARGET="_blank">http://bugs.kde.org/show_bug.cgi?id=64317</A> </FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> ------- Additional Comments From faure@kde.org 2003-09-15 </FONT> <BR><FONT SIZE=2>> 16:16 -------</FONT> <BR><FONT SIZE=2>> Subject: Re: New: inserts unexpected characters when typing</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> On Monday 15 September 2003 15:09, you wrote:</FONT> <BR><FONT SIZE=2>> > When typing in a document (it only seems to happen to me </FONT> <BR><FONT SIZE=2>> with non root users), with some characters, like """, ",", </FONT> <BR><FONT SIZE=2>> ".", there is a new character inserted, sometimes is a box </FONT> <BR><FONT SIZE=2>> character, sometimes is a character.</FONT> <BR><FONT SIZE=2>> > </FONT> <BR><FONT SIZE=2>> > For example, when I type "", I obtain "" plus a box </FONT> <BR><FONT SIZE=2>> character. The result is in the attached file.</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> Hum this sounds like a keyboard bug to me. Does the same happen in</FONT> <BR><FONT SIZE=2>> other KDE programs? Qt-only programs? X-only programs?</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> In the .kwd document I can see null characters - this is </FONT> <BR><FONT SIZE=2>> probably what shows </FONT> <BR><FONT SIZE=2>> up as a box for you. The fact that this null character gets </FONT> <BR><FONT SIZE=2>> inserted, is either</FONT> <BR><FONT SIZE=2>> an X bug or a Qt bug, key events are nothing KWord-specific.</FONT> <BR><FONT SIZE=2>> </FONT> </P> </BODY> </HTML>
Created attachment 2464 [details] strange character
Subject: Re: inserts unexpected characters when typing On Monday 15 September 2003 16:36, you wrote: > More information, When I type in the middle of a word, two "", it insers the > null , goes two characters to the right and inserts a white character. > For example, if I type super-good, and then insert "" between pe, then I see > sup""#e -good. See the new attachement. Oh! It's the auto-correction code then, the one that replaces quotes with typographical quotes... Indeed, my /home/dfaure/.kde/share/apps/koffice/autocorrect/C.xml has null characters in it. I'll try to fix that. Meanwhile: deactivate auto-correction.
Subject: RE: inserts unexpected characters when typing It is the autocorrection. Disabling it does not insert the characters. > -----Mensaje original----- > De: David Faure [mailto:faure@kde.org] > Enviado el: lunes, 15 de septiembre de 2003 16:45 > Para: jtorres@sia.es > Asunto: [Bug 64317] inserts unexpected characters when typing > > > ------- You are receiving this mail because: ------- > You reported the bug, or are watching the reporter. > > http://bugs.kde.org/show_bug.cgi?id=64317 > > > > > ------- Additional Comments From faure@kde.org 2003-09-15 > 16:45 ------- > Subject: Re: inserts unexpected characters when typing > > On Monday 15 September 2003 16:36, you wrote: > > More information, When I type in the middle of a word, two > "", it insers the > > null , goes two characters to the right and inserts a white > character. > > For example, if I type super-good, and then insert "" > between pe, then I see > > sup""#e -good. See the new attachement. > > Oh! It's the auto-correction code then, the one that replaces > quotes with > typographical quotes... > > Indeed, my > /home/dfaure/.kde/share/apps/koffice/autocorrect/C.xml has > null characters > in it. I'll try to fix that. Meanwhile: deactivate auto-correction. > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-6"> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12"> <TITLE>RE: [Bug 64317] inserts unexpected characters when typing </TITLE> </HEAD> <BODY> <P><FONT SIZE=2>It is the autocorrection. Disabling it does not insert the characters.</FONT> </P> <P><FONT SIZE=2>> -----Mensaje original-----</FONT> <BR><FONT SIZE=2>> De: David Faure [<A HREF="mailto:faure@kde.org">mailto:faure@kde.org</A>]</FONT> <BR><FONT SIZE=2>> Enviado el: lunes, 15 de septiembre de 2003 16:45</FONT> <BR><FONT SIZE=2>> Para: jtorres@sia.es</FONT> <BR><FONT SIZE=2>> Asunto: [Bug 64317] inserts unexpected characters when typing </FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> ------- You are receiving this mail because: -------</FONT> <BR><FONT SIZE=2>> You reported the bug, or are watching the reporter.</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> <A HREF="http://bugs.kde.org/show_bug.cgi?id=64317" TARGET="_blank">http://bugs.kde.org/show_bug.cgi?id=64317</A> </FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> ------- Additional Comments From faure@kde.org 2003-09-15 </FONT> <BR><FONT SIZE=2>> 16:45 -------</FONT> <BR><FONT SIZE=2>> Subject: Re: inserts unexpected characters when typing</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> On Monday 15 September 2003 16:36, you wrote:</FONT> <BR><FONT SIZE=2>> > More information, When I type in the middle of a word, two </FONT> <BR><FONT SIZE=2>> "", it insers the</FONT> <BR><FONT SIZE=2>> > null , goes two characters to the right and inserts a white </FONT> <BR><FONT SIZE=2>> character.</FONT> <BR><FONT SIZE=2>> > For example, if I type super-good, and then insert "" </FONT> <BR><FONT SIZE=2>> between pe, then I see</FONT> <BR><FONT SIZE=2>> > sup""#e -good. See the new attachement.</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> Oh! It's the auto-correction code then, the one that replaces </FONT> <BR><FONT SIZE=2>> quotes with</FONT> <BR><FONT SIZE=2>> typographical quotes...</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> Indeed, my </FONT> <BR><FONT SIZE=2>> /home/dfaure/.kde/share/apps/koffice/autocorrect/C.xml has </FONT> <BR><FONT SIZE=2>> null characters</FONT> <BR><FONT SIZE=2>> in it. I'll try to fix that. Meanwhile: deactivate auto-correction.</FONT> <BR><FONT SIZE=2>> </FONT> </P> </BODY> </HTML>
I can not reproduce this with cvs head from 20040108. Can you Jaime? Or do David remember fixing this one :-) Cheers Jo
Subject: RE: inserts unexpected characters when typing It is working rigth. I close the bug. > -----Mensaje original----- > De: jo-oiongen@sensewave.com [mailto:jo-oiongen@sensewave.com] > Enviado el: domingo, 11 de enero de 2004 14:32 > Para: jtorres@sia.es > Asunto: [Bug 64317] inserts unexpected characters when typing > > > ------- You are receiving this mail because: ------- > You reported the bug, or are watching the reporter. > > http://bugs.kde.org/show_bug.cgi?id=64317 > > > > > ------- Additional Comments From jo-oiongen@sensewave.com > 2004-01-11 14:32 ------- > I can not reproduce this with cvs head from 20040108. > > Can you Jaime? Or do David remember fixing this one :-) > > Cheers Jo > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12"> <TITLE>RE: [Bug 64317] inserts unexpected characters when typing </TITLE> </HEAD> <BODY> <P><FONT SIZE=2>It is working rigth.</FONT> </P> <P><FONT SIZE=2>I close the bug.</FONT> </P> <P><FONT SIZE=2>> -----Mensaje original-----</FONT> <BR><FONT SIZE=2>> De: jo-oiongen@sensewave.com [<A HREF="mailto:jo-oiongen@sensewave.com">mailto:jo-oiongen@sensewave.com</A>]</FONT> <BR><FONT SIZE=2>> Enviado el: domingo, 11 de enero de 2004 14:32</FONT> <BR><FONT SIZE=2>> Para: jtorres@sia.es</FONT> <BR><FONT SIZE=2>> Asunto: [Bug 64317] inserts unexpected characters when typing </FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> ------- You are receiving this mail because: -------</FONT> <BR><FONT SIZE=2>> You reported the bug, or are watching the reporter.</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> <A HREF="http://bugs.kde.org/show_bug.cgi?id=64317" TARGET="_blank">http://bugs.kde.org/show_bug.cgi?id=64317</A> </FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> ------- Additional Comments From jo-oiongen@sensewave.com </FONT> <BR><FONT SIZE=2>> 2004-01-11 14:32 -------</FONT> <BR><FONT SIZE=2>> I can not reproduce this with cvs head from 20040108.</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> Can you Jaime? Or do David remember fixing this one :-)</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> Cheers Jo</FONT> <BR><FONT SIZE=2>> </FONT> </P> </BODY> </HTML>
It is working right in Koffice 3.2 beta 3 and later.
Subject: koffice/lib/kotext CVS commit by faure: Check for a null character in the autocorrect file. Not sure how it happened, but it broke things badly :) CCMAIL: 64317@bugs.kde.org M +2 -2 koAutoFormat.cc 1.127 --- koffice/lib/kotext/koAutoFormat.cc #1.126:1.127 @@ -362,8 +362,8 @@ void KoAutoFormat::readConfig(bool force { QString attr = childItem.attribute( "begin" ); - if ( !attr.isEmpty() ) + if ( !attr.isEmpty() && attr[0] != 0 ) m_typographicDefaultSimpleQuotes.begin = attr[0]; attr = childItem.attribute( "end" ); - if ( !attr.isEmpty() ) + if ( !attr.isEmpty() && attr[0] != 0 ) m_typographicDefaultSimpleQuotes.end = attr[0]; }