# HG changeset patch # User Sam Lantinga # Date 1253961448 0 # Node ID 22aec2e85b863560c4c69fe46c50f90dd8b3ac38 # Parent fa62bede803895bc0d456674c2050b926ac2297e Fixed bug #797 Ryan C. Gordon 2009-09-19 08:25:21 PDT 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". diff -r fa62bede8038 -r 22aec2e85b86 src/stdlib/SDL_iconv.c --- a/src/stdlib/SDL_iconv.c Sat Sep 26 10:05:07 2009 +0000 +++ b/src/stdlib/SDL_iconv.c Sat Sep 26 10:37:28 2009 +0000 @@ -828,7 +828,7 @@ tocode = "UTF-8"; } if ( !fromcode || !*fromcode ) { - tocode = "UTF-8"; + fromcode = "UTF-8"; } cd = SDL_iconv_open(tocode, fromcode); }