> In http://www.fltk.org/str.php?L2158 I already raised the question > about native wcwidth() implementations and Markus Kuhn's mk_wcwidth().
Yup - been following that. I guess we would need a configure check to see if the system provides wcwidth() and wcswidth() and use them if available, or revert to the mk_* variants (e.g. by an ifdef or etc.) of they are not available? Is that what you had in mind? Or just to always use the built-in mk_* variants? > For Linux, the locale comes into play, and they give different results > on my box. What locale do you have set? For this stuff, you probably need to have a utf8 locale set, maybe? I have en_GB.utf8 set as the default on my ubuntu test boxes... I'd guess you'd need, er... nl_NL.utf8 and/or maybe en_US.utf8 maybe...? Or is the utf8 locale already set...? > I don't know whether native OSX and Win32 wcwidth() work Does win32 have a wcwidth() function? I don't see one in my mingw headers... I suppose there must be some MS specific equivalent though? > in a similar way to the Linux implementation, or whether they are > closer to mk_wcwidth(). Apart from issues of cut'n'paste from a > native application to an FLTK application with mk_wcwidth() I could > not see any problem with simply using mk_wcwidth() as is. It certainly seems to be better than nothing... Which is what we might otherwise have! > And the more I get into the Unicode stuff, the more ignorant I feel. Welcome to the club... In particular, all the implicit assumptions that come from decades of ASCII string handling make it hard to get my head around the issues of Unicode strings... SELEX Galileo Ltd Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
