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

Summary: WIN_UTF8ToString is little-endian only
Product: SDL Reporter: Daniel <daniel.plakhotich>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED WONTFIX QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.4   
Hardware: x86_64   
OS: Linux   

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.