> > i am not doing anything but pressing option+'+' in the > tooltip field of > > fluid on my german mac keyboard to get a '+/-' like > thingie. dunno the > > codepoint or what it is called - probably 'plusminus', a > plus directly > > on top of a minus. '?'
In Unicode it is codepoint U+00B1 and is called "Plus-minus sign" I think. Codepoint 0xB1 is in the Latin-1 supplement page, and is identical to ISO-8859-1 for all practical purposes. So, if the Mac is generating the value 0xB1 for this glyph, it should be valid UTF8 by default, in which case I can't think why it would not Just Work. > > $ echo "±" | od -t x1 > 0000000 b1 0a > 0000002 > > This is Windows CP 1252, or ISO-8859-1, and it appears that MacRoman > encoding for the "±" character is the same: 0xB1. > > What does the command above show on your Mac ? Please type the "±" > character on your keyboard, don't cut'n'paste it from somewhere else. > > I tested this on Windows, and it doesn't crash the app. Maybe it's > something weird on Mac OS ? Indeed - the 0xB1 value is what we'd expect. Maybe Mac Roman (or whatever locale his machine has) is a bit funny here? Though I doubt it. Hmm, well, heres a quote from wikipedia... "The codes 0xA2, 0xA3, 0xA9, 0xB1, and 0xB5 coincidentally have the same character assignment as ISO-8859-1 (and thus Unicode)." So that all looks as if it ought to work fine. Most odd that it fails. 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 mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

