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 - Wrong assignment in SDL_iconv_string()...
Summary: Wrong assignment in SDL_iconv_string()...
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 2.0
Hardware: x86 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: target-1.2.14
Depends on:
Blocks:
 
Reported: 2009-09-19 08:25 UTC by Ryan C. Gordon
Modified: 2009-09-26 03:37 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 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!