Mercurial > sdl-ios-xcode
diff test/testiconv.c @ 1516:4d241ea8a1cd
Updated MacOS Classic build
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 13 Mar 2006 05:36:42 +0000 |
parents | d403a39389da |
children | ff3322d66771 |
line wrap: on
line diff
--- a/test/testiconv.c Mon Mar 13 04:35:59 2006 +0000 +++ b/test/testiconv.c Mon Mar 13 05:36:42 2006 +0000 @@ -44,7 +44,7 @@ char buffer[BUFSIZ]; char *ucs4; char *test[2]; - int i, j, index = 0; + int i, index = 0; FILE *file; int errors = 0; @@ -59,8 +59,9 @@ while ( fgets(buffer, sizeof(buffer), file) ) { /* Convert to UCS-4 */ + size_t len; ucs4 = SDL_iconv_string("UCS-4", "UTF-8", buffer, SDL_strlen(buffer)+1); - size_t len = (widelen(ucs4)+1)*4; + len = (widelen(ucs4)+1)*4; for ( i = 0; i < SDL_arraysize(formats); ++i ) { if ( (SDL_strncasecmp(formats[i], "UTF16", 5) == 0 || SDL_strncasecmp(formats[i], "UTF-16", 6) == 0 ||