Bug 64317 - inserts unexpected characters when typing
Summary: inserts unexpected characters when typing
Status: RESOLVED WORKSFORME
Alias: None
Product: kword
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Thomas Zander
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-15 15:09 UTC by Jaime Torres
Modified: 2004-01-12 09:44 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
The result document with the strange characters. (3.16 KB, application/x-kword)
2003-09-15 15:10 UTC, Jaime Torres
Details
strange character (2.92 KB, application/x-kword)
2003-09-15 16:38 UTC, Jaime Torres
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaime Torres 2003-09-15 15:09:02 UTC
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.
Comment 1 Jaime Torres 2003-09-15 15:10:40 UTC
Created attachment 2463 [details]
The result document with the strange characters.
Comment 2 David Faure 2003-09-15 16:16:30 UTC
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.

Comment 3 Jaime Torres 2003-09-15 16:36:22 UTC
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 &quot;&quot;, 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 &quot;&quot; between pe, then I see sup&quot;&quot;#e -good. See the new attachement.</FONT>
</P>

<P><FONT SIZE=2>&gt; -----Mensaje original-----</FONT>
<BR><FONT SIZE=2>&gt; De: David Faure [<A HREF="mailto:faure@kde.org">mailto:faure@kde.org</A>]</FONT>
<BR><FONT SIZE=2>&gt; Enviado el: lunes, 15 de septiembre de 2003 16:17</FONT>
<BR><FONT SIZE=2>&gt; Para: jtorres@sia.es</FONT>
<BR><FONT SIZE=2>&gt; Asunto: [Bug 64317] inserts unexpected characters when typing </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; ------- You are receiving this mail because: -------</FONT>
<BR><FONT SIZE=2>&gt; You reported the bug, or are watching the reporter.</FONT>
<BR><FONT SIZE=2>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; <A HREF="http://bugs.kde.org/show_bug.cgi?id=64317" TARGET="_blank">http://bugs.kde.org/show_bug.cgi?id=64317</A>&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; ------- Additional Comments From faure@kde.org&nbsp; 2003-09-15 </FONT>
<BR><FONT SIZE=2>&gt; 16:16 -------</FONT>
<BR><FONT SIZE=2>&gt; Subject: Re:&nbsp; New: inserts unexpected characters when typing</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; On Monday 15 September 2003 15:09, you wrote:</FONT>
<BR><FONT SIZE=2>&gt; &gt; When typing in a document (it only seems to happen to me </FONT>
<BR><FONT SIZE=2>&gt; with non root users), with some characters, like &quot;&quot;&quot;, &quot;,&quot;, </FONT>
<BR><FONT SIZE=2>&gt; &quot;.&quot;, there is a new character inserted, sometimes is a box </FONT>
<BR><FONT SIZE=2>&gt; character, sometimes is a character.</FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; For example, when I type &quot;&quot;, I obtain &quot;&quot; plus a box </FONT>
<BR><FONT SIZE=2>&gt; character. The result is in the attached file.</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Hum this sounds like a keyboard bug to me. Does the same happen in</FONT>
<BR><FONT SIZE=2>&gt; other KDE programs? Qt-only programs? X-only programs?</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; In the .kwd document I can see null characters - this is </FONT>
<BR><FONT SIZE=2>&gt; probably what shows </FONT>
<BR><FONT SIZE=2>&gt; up as a box for you. The fact that this null character gets </FONT>
<BR><FONT SIZE=2>&gt; inserted, is either</FONT>
<BR><FONT SIZE=2>&gt; an X bug or a Qt bug, key events are nothing KWord-specific.</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
</P>

</BODY>
</HTML>
Comment 4 Jaime Torres 2003-09-15 16:38:14 UTC
Created attachment 2464 [details]
strange character
Comment 5 David Faure 2003-09-15 16:45:18 UTC
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.

Comment 6 Jaime Torres 2003-09-15 16:52:22 UTC
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>&gt; -----Mensaje original-----</FONT>
<BR><FONT SIZE=2>&gt; De: David Faure [<A HREF="mailto:faure@kde.org">mailto:faure@kde.org</A>]</FONT>
<BR><FONT SIZE=2>&gt; Enviado el: lunes, 15 de septiembre de 2003 16:45</FONT>
<BR><FONT SIZE=2>&gt; Para: jtorres@sia.es</FONT>
<BR><FONT SIZE=2>&gt; Asunto: [Bug 64317] inserts unexpected characters when typing </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; ------- You are receiving this mail because: -------</FONT>
<BR><FONT SIZE=2>&gt; You reported the bug, or are watching the reporter.</FONT>
<BR><FONT SIZE=2>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; <A HREF="http://bugs.kde.org/show_bug.cgi?id=64317" TARGET="_blank">http://bugs.kde.org/show_bug.cgi?id=64317</A>&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; ------- Additional Comments From faure@kde.org&nbsp; 2003-09-15 </FONT>
<BR><FONT SIZE=2>&gt; 16:45 -------</FONT>
<BR><FONT SIZE=2>&gt; Subject: Re:&nbsp; inserts unexpected characters when typing</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; On Monday 15 September 2003 16:36, you wrote:</FONT>
<BR><FONT SIZE=2>&gt; &gt; More information, When I type in the middle of a word, two </FONT>
<BR><FONT SIZE=2>&gt; &quot;&quot;, it insers the</FONT>
<BR><FONT SIZE=2>&gt; &gt; null , goes two characters to the right and inserts a white </FONT>
<BR><FONT SIZE=2>&gt; character.</FONT>
<BR><FONT SIZE=2>&gt; &gt; For example, if I type super-good, and then insert &quot;&quot; </FONT>
<BR><FONT SIZE=2>&gt; between pe, then I see</FONT>
<BR><FONT SIZE=2>&gt; &gt; sup&quot;&quot;#e -good. See the new attachement.</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Oh! It's the auto-correction code then, the one that replaces </FONT>
<BR><FONT SIZE=2>&gt; quotes with</FONT>
<BR><FONT SIZE=2>&gt; typographical quotes...</FONT>
<BR><FONT SIZE=2>&gt;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; Indeed, my </FONT>
<BR><FONT SIZE=2>&gt; /home/dfaure/.kde/share/apps/koffice/autocorrect/C.xml has </FONT>
<BR><FONT SIZE=2>&gt; null characters</FONT>
<BR><FONT SIZE=2>&gt; in it. I'll try to fix that. Meanwhile: deactivate auto-correction.</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
</P>

</BODY>
</HTML>
Comment 7 Jo Øiongen 2004-01-11 14:32:14 UTC
I can not reproduce this with cvs head from 20040108.

Can you Jaime? Or do David remember fixing this one :-)

Cheers Jo
Comment 8 Jaime Torres 2004-01-12 09:41:32 UTC
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>&gt; -----Mensaje original-----</FONT>
<BR><FONT SIZE=2>&gt; De: jo-oiongen@sensewave.com [<A HREF="mailto:jo-oiongen@sensewave.com">mailto:jo-oiongen@sensewave.com</A>]</FONT>
<BR><FONT SIZE=2>&gt; Enviado el: domingo, 11 de enero de 2004 14:32</FONT>
<BR><FONT SIZE=2>&gt; Para: jtorres@sia.es</FONT>
<BR><FONT SIZE=2>&gt; Asunto: [Bug 64317] inserts unexpected characters when typing </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; ------- You are receiving this mail because: -------</FONT>
<BR><FONT SIZE=2>&gt; You reported the bug, or are watching the reporter.</FONT>
<BR><FONT SIZE=2>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; <A HREF="http://bugs.kde.org/show_bug.cgi?id=64317" TARGET="_blank">http://bugs.kde.org/show_bug.cgi?id=64317</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; ------- Additional Comments From jo-oiongen@sensewave.com&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; 2004-01-11 14:32 -------</FONT>
<BR><FONT SIZE=2>&gt; I can not reproduce this with cvs head from 20040108.</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Can you Jaime? Or do David remember fixing this one :-)</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Cheers Jo</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
</P>

</BODY>
</HTML>
Comment 9 Jaime Torres 2004-01-12 09:44:38 UTC
It is working right in Koffice 3.2 beta 3 and later.
Comment 10 David Faure 2004-01-12 10:05:34 UTC
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];
             }