[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
re: utf8 support for xchat 1.9?
Kang Jeong-Hee <Keizi@mail.co.kr> wrote:
> I'm using GNOME2 on linux. so I tried xchat 1.9 with gtk2.
> xchat now does not have utf8 support never, right?
> so millions of utf8 warning scroll over the terminal.
>
> I did a private hack to some line of code, to insert g_locale_to_utf8() for
> about 6 > place. and I've got a proper main window.
>
> I'm wondering is there a big switch function to turn on native->utf8 of
> whole gtk > widget. if there is, utf8 patch will be ok the one function.
> or, so many line of g_localt_to_utf8() must be necessary.
>
> thanks.
There is no big switch function, GTK always uses utf8 now.
I think the way to go here is to assume all the configs are in utf8. That way
you enter text into GtkEntry's and save them directly. Text sent to the IRC
server on the other hand should be converted to current locale (latin-1), and
I've already made this change. Text coming back from the server should then
be converted to UTF8, so it can be disabled in GTK widgets (not done yet).
--
Peter Zelezny. <zed@xchat.org>
--
XChat-discuss: mailing list for XChat users
Archive: http://mail.nl.linux.org/xchat-discuss/