On 07/18/18 07:33, Andrew Robinson wrote:
Cloud Wu,

Absolutely not. In order for IUP to work with all OSes, it cannot use UTF-8
because Microsoft only fully supports UTF-16. The lowest common denominator
are the ANSI Latin code pages.

Regards,
Andrew
[...]

G'day,

[First of all, a slight preamble/sideline regarding lua-l and utf8:]

There's just been (yet another, sigh) round of "we want more support for
UTF-8 than just what the utf8 package gives us" messages in the lua-l
mailing list.

The bottom line from that discussion seems to be that full Unicode
support (not just UTF-8) requires all sorts of extras, e.g. combining
characters, layout direction (L-to-R or R-to-L?) directives, glyphs
for typesetting, etc.

The requests for "better" UTF-8 support (perhaps via metatables) then
get pushed away, essentially because the existing utf8 library provides
a clearly-defined level of functionality, but moving up to a higher
level of abstraction sees an explosion of requirements that the library
writers do not want to tackle, as the effort (and library size) becomes
too great, and any application can tackle the next level(s) without
having to reinvent the utf8-library-level wheel.

[Now: A question relating to Microsoft OSes and UTF-8 versus UTF-16:]

I'm curious to know more about the underlying APIs and/or rationale
behind the "Microsoft only fully supports UTF-16" statement.  The
UTF-8 encoding has the nice property that valid strings may be treated
as C strings, as the NUL ('\0') character does not appear in any
higher-order encoding, allowing many C-string-based APIs to operate
seamlessly without requiring special attention to the encoding (again,
this statement requires that characters in UTF-8 are encoded in a
valid way; some characters can be (invalidly) encoded with
different-length sequences; in all such cases, only the shortest is
valid).

So, could you please help explain to a non-MS-OS person like myself
about how UTF-8 is a poor cousin to UTF-16 in Microsoft operating
systems?

thanks in advance for any help,

sur-behoffski (Brenton Hoff)
programmer, Grouse Software

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to