This is the wrong mailing list, dedicated to development of Gtk+.

Your e-mail does not contain any question.  So I suppose you want to
know why your code is broken.

On Tue, May 29, 2012 at 09:18:38AM -0700, jessCPP wrote:
>     setlocale(LC_CTYPE, "UTF-8");

A bit strange and not actually influencing anything else in your code.

>       wchar_t wide[]=L"this is wide";

Gtk+ works with UTF-8 encoded strings (i.e. sequences of bytes),
*not* wide characters.

wchar_t is an arbitrary poorly-defined platform-dependent type, making
difficult to write a portable code.  Do not use wide characters unless
you have to.  And if you have to then convert them to UTF-8 for use with
Gtk+, e.g. using iconv with "WCHAR_T" as the source encoding.

Yeti

_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list

Reply via email to