comparison src/stdlib/SDL_iconv.c @ 3320:b225c8a7896e

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".
author Sam Lantinga <slouken@libsdl.org>
date Sat, 26 Sep 2009 10:36:55 +0000
parents 99210400e8b9
children f2846bf19360
comparison
equal deleted inserted replaced
3319:63d4517fc4ac 3320:b225c8a7896e
830 /* See if we can recover here (fixes iconv on Solaris 11) */ 830 /* See if we can recover here (fixes iconv on Solaris 11) */
831 if (!tocode || !*tocode) { 831 if (!tocode || !*tocode) {
832 tocode = "UTF-8"; 832 tocode = "UTF-8";
833 } 833 }
834 if (!fromcode || !*fromcode) { 834 if (!fromcode || !*fromcode) {
835 tocode = "UTF-8"; 835 fromcode = "UTF-8";
836 } 836 }
837 cd = SDL_iconv_open(tocode, fromcode); 837 cd = SDL_iconv_open(tocode, fromcode);
838 } 838 }
839 if (cd == (SDL_iconv_t) - 1) { 839 if (cd == (SDL_iconv_t) - 1) {
840 return NULL; 840 return NULL;