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 797

Summary: Wrong assignment in SDL_iconv_string()...
Product: SDL Reporter: Ryan C. Gordon <icculus>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 Keywords: target-1.2.14
Version: HG 2.0   
Hardware: x86   
OS: Linux   

Description Ryan C. Gordon 2009-09-19 08:25:21 UTC
This line in SDL_iconv_string (src/stdlib/SDL_iconv.c) ...


        if (!fromcode || !*fromcode) {
            tocode = "UTF-8";
        }

Is probably supposed to assign to "fromcode" and not "tocode".

Exists in both SDL 1.2 and 1.3.

--ryan.
Comment 1 Sam Lantinga 2009-09-26 03:37:40 UTC
This is fixed in subversion, thanks!