UTF8 guarantees for GdkEntryKey



Is the "string" field of a GdkEventKey guaranteed to be valid UTF-8?  Am I 
correct in thinking that I ought to be able to write (regardless of 
language/input method):
	g_return_if_fail(g_utf8_validate(event->string, -1, NULL));

I'm having problems with Cyrillic key entry in a custom XML editor widget I'm 
writing (www.conglomerate.org, a free-as-in-GPL user-friendly XML editor).

Thanks in advance!

Dave Malcolm



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