We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3443 - WIN_UTF8ToString is little-endian only
Summary: WIN_UTF8ToString is little-endian only
Status: RESOLVED WONTFIX
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: 2.0.4
Hardware: x86_64 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-02 18:38 UTC by Daniel
Modified: 2017-05-24 14:57 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel 2016-10-02 18:38:30 UTC
WIN_UTF8ToString is defined as a macro that uses SDL_iconv_string("UTF-16LE", ...
All routines that use it (like SDL_LoadObject, RWops, etc.), will not work properly on big-endian machines.
Comment 1 Ryan C. Gordon 2017-05-19 19:10:43 UTC
(In reply to Daniel from comment #0)
> WIN_UTF8ToString is defined as a macro that uses
> SDL_iconv_string("UTF-16LE", ...
> All routines that use it (like SDL_LoadObject, RWops, etc.), will not work
> properly on big-endian machines.

Is there a bigendian Windows OS?

--ryan.
Comment 2 Ryan C. Gordon 2017-05-24 14:57:26 UTC
Going to mark this as WONTFIX for now, but we'll reopen it if we ever get an Xbox360 port.  :)

(Even the XBox One is littleendian again, though.)

--ryan.