Lossy conversion fix.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13178 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-03-20 17:09:03 +00:00
parent 2f26f6ae7f
commit b98dcb3191
3 changed files with 7 additions and 4 deletions

View file

@ -13,6 +13,8 @@
* Source/UnixFileHandle.m: Fix to return gdomap port even if
getservbyname() doesn't.
* Source/NSTask.m: Try appending .exe extension to paths under windoze.
* Source/Unicode.m: GSFromUnicode() fix lossy conversion for cases
where output encoding can't handle the unicode.
2002-03-19 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -2150,8 +2150,8 @@ tables:
{
*outbuf++ = '*';
outbytesleft--;
inbuf++;
inbytesleft--;
inbuf += sizeof(unichar);
inbytesleft -= sizeof(unichar);
}
}
else if (errno != E2BIG)

View file

@ -450,8 +450,10 @@ int main (int argc, char *argv[], char **env)
exit(0);
break;
default:
#if 0
usage(argv[0]);
exit(1);
#endif
break;
}
if (type_test == NO_TEST)
@ -477,8 +479,7 @@ int main (int argc, char *argv[], char **env)
}
else
prx = [NSConnection rootProxyForConnectionWithRegisteredName:
@"test2server"
host:nil];
@"test2server" host: @"*"];
if (prx == nil)
{
printf("ERROR: Failed to connect to server\n");