On 7 Apr 2007, at 21:02, Mariwan wrote: > It seems that even in fltk 2 the label is stile const char* declared. > Widget(int,int,int,int,const char* =0); > > Should not be ....const wchar_t*=0 , Is it wrong or what?
utf-8 is not a wide character encoding, it is an 8-bit (i.e. "regular") character encoding. The main point of the utf-8 standard was (as implemented in Plan-9 originally, I think, and later presumably in inferno, although it's a long time since I used either) to provide a Unicode encoding that works satisfactorily with 8-bit native interfaces and tools, and which avoids the vagaries of the differing wide-character solutions to Unicode representations (in particular the byte-endianess issues you encounter streaming wide-characters over character interfaces.) So, in short, no, I don't think a wchar_t is required or appropriate in that case. -- Ian _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

