Fixed bug #349
Solaris doesn't support the LATIN1 character set alias. Merged from 1.2 svn revision 3133f --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402406
This commit is contained in:
parent
957d8bf377
commit
5d2577791f
3 changed files with 36 additions and 28 deletions
|
@ -57,12 +57,16 @@ main(int argc, char *argv[])
|
|||
for (i = 0; i < SDL_arraysize(formats); ++i) {
|
||||
test[0] = SDL_iconv_string(formats[i], "UCS-4", ucs4, len);
|
||||
test[1] = SDL_iconv_string("UCS-4", formats[i], test[0], len);
|
||||
if (SDL_memcmp(test[1], ucs4, len) != 0) {
|
||||
if (!test[1] || SDL_memcmp(test[1], ucs4, len) != 0) {
|
||||
fprintf(stderr, "FAIL: %s\n", formats[i]);
|
||||
++errors;
|
||||
}
|
||||
SDL_free(test[0]);
|
||||
SDL_free(test[1]);
|
||||
if(test[0]) {
|
||||
SDL_free(test[0]);
|
||||
}
|
||||
if(test[1]) {
|
||||
SDL_free(test[1]);
|
||||
}
|
||||
}
|
||||
test[0] = SDL_iconv_string("UTF-8", "UCS-4", ucs4, len);
|
||||
SDL_free(ucs4);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue