> I wrote a small test program with MK's wcwidth.c contents + this:

Yup... I also wrote that program...


> limited range of data type
> sizeof wchar_t = 2
> --- end ---
> 
> Also as expected :-(

I just replaced every use of wchar_t with int in wcwidth.c and all is
well.

According to RFC629 valid Unicode is 0 - 0x0010ffff so can safely be
handled in an int, though might as well be a unsigned, just in case they
add more pages...

I suppose we need to figure out what a wchar_t *actually* is on OSX or
Linux and settle on than - I guess uint32_t or something might be a
credible choice?




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

Reply via email to