On Sat, Jan 17, 2004 at 12:22:39PM +0100, Marcus Lundblad wrote:
> 
> 
> On Fri, 16 Jan 2004, Marcus Lundblad wrote:
> 
> > FvwmScript seems to be broken when inputting text in UTF-8 locale.
> > Inputting characters within ASCII (first 127) works as expected, but
> > umlated characters and so on produces strange characters (and sometimes
> > just a rectangle, the font's "unknown" characters).
> > The font has the requested characters. I think there is something strange
> > going on as to how keyboard input is handled, maybe just one byte is read
> > for each keyboard event?
> 
> OK, I think I found where the problem is:
> 
> modules/FvwmScript/Widgets/TextField.c (line 522 onwards)
> 
> else if (i!=0)        /* Cas d'un caractere normal */
> {
>       /* Insertion du caractere dans le titre */
>       /* a normal character: insertion in the title */
>       Size=strlen(xobj->title);
>               xobj->title=(char*)realloc(
>               xobj->title,(2+Size)*sizeof(char));
> 
>       memmove(&xobj->title[NewPos+1],&xobj->title[NewPos],
>               Size-NewPos+1);
>               xobj->title[NewPos]=car[0];
>               NewPos++;
>               SendMsg(xobj,SingleClic);
> }
> 
> 
> No matter how many bytes are returned by XLookupString, only one byte
> (the first) is inserted into the widgets textbuffer.
> Also delete and moving (left, right) will need to be fixed.
> Actually it will also not work with right-to-left text.
> 
> I think I will start to make it work for left-to-right text with no
> combining characters in it (like the UTF-8-equivalent to ISO-8859-1/2
> etc.)
 
> Would this be filed as a "normal bug"?

Sure.  Actually, I don't understand exactly what a "anormal"
bug would be.

Ciao

Dominik ^_^  ^_^
--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to