fix test for availability of lossy conversion in iconv library

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35066 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2012-04-15 07:21:36 +00:00
parent 835817a415
commit e2e74266e3
2 changed files with 30 additions and 25 deletions

View file

@ -334,7 +334,7 @@ static void GSSetupEncodingTable(void)
lossy = malloc(l + 11);
strncpy(lossy, entry->iconv, l);
strncpy(lossy + l, "//TRANSLIT", 11);
c = iconv_open(entry->iconv, UNICODE_ENC);
c = iconv_open(lossy, UNICODE_ENC);
if (c == (iconv_t)-1)
{
free(lossy);