Re: How to read and how to write to a gtktext (changed behaviour)



Javier Ros Ganuza <jros unavarra es> writes:
I suppouse that is a UTF issue but I dont know how to deal with it.

In redhat 6.2 the gtktext widget worked perfectly when feeded directly
with plain 7bit ascii files (writing the gtktext buffer content directly
and reading it again worked ok also),
but with redhat 7.0 this does not hapen no longer:

- When feeding directly the gtktext with a plain 7bit asscii file (no
filtering),
gtktext shows garbage.

It must be a utf16 encoding isue thougt aproximatelly  2 meaningfull
characters are converted
to a 1 garbage charater.

Supposing I'm right, the question is the following.

Which is the function I've have to use to filter an ascii stream
in order to feed the gtktext buffer?. (i.e. ascii  to UTF16),
and wich is the converse funtion of the previous one?


GtkText didn't change between RH 6.2 and RH 7; in both cases it
expects the current locale's default encoding. In GTK 1.3.x (the
unstable/devel version) it expects UTF-8.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]