[SDL] SDL_iconv UCS-4 endianness
list at akfoerster.de
list at akfoerster.de
Sun Oct 7 11:13:20 PDT 2007
Am Tuesday, dem 25. Sep 2007 schrieb Christian Walther:
> I just discovered an inconsistency with SDL_iconv: SDL's internal iconv
> implementation (used by SDL_iconv on Mac OS X) interprets "UCS-4" as
> native-endian, while GNU libc iconv (used by SDL_iconv on Linux)
> interprets it as big-endian (same as "UCS-4BE") (and seems to have no
> option for native-endian UCS-4). Any idea who's right (if there even is
> a commonly accepted definition of "right")?
This is undefined. So there is no right or wrong in this case.
If you want a more predictable behaviour, use UTF-32BE or UTF-32LE.
This should be the same result in SDL_iconv and in glibc...
--
AKFoerster
More information about the SDL
mailing list