From 2232b0e7fa2da01d93fe0276016943b9a35ec766 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 26 Sep 2009 10:36:55 +0000 Subject: [PATCH] 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". --- src/stdlib/SDL_iconv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stdlib/SDL_iconv.c b/src/stdlib/SDL_iconv.c index 834652bf0..4fb0f8248 100644 --- a/src/stdlib/SDL_iconv.c +++ b/src/stdlib/SDL_iconv.c @@ -832,7 +832,7 @@ SDL_iconv_string(const char *tocode, const char *fromcode, const char *inbuf, tocode = "UTF-8"; } if (!fromcode || !*fromcode) { - tocode = "UTF-8"; + fromcode = "UTF-8"; } cd = SDL_iconv_open(tocode, fromcode); }