This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: isspace() & i18n
This has been checked in. It doesn't solve the larger issue of
if this is a newlib bug or not but I think that this is a correct
fix nonetheless.
Thanks, Earnie.
cgf
On Wed, May 30, 2001 at 11:49:28AM -0400, Earnie Boyd wrote:
>So does this solve the problem?
>
>--
>Earnie.
>Index: path.cc
>===================================================================
>RCS file: /cvs/src/src/winsup/cygwin/path.cc,v
>retrieving revision 1.139
>diff -u -p -r1.139 path.cc
>--- path.cc 2001/05/14 02:52:12 1.139
>+++ path.cc 2001/05/30 15:45:49
>@@ -2929,7 +2929,7 @@ chdir (const char *dir)
> whitespace to SetCurrentDirectory. This doesn't work too well
> with other parts of the API, though, apparently. So nuke trailing
> white space. */
>- for (s = strchr (dir, '\0'); --s >= dir && isspace (*s); )
>+ for (s = strchr (dir, '\0'); --s >= dir && isspace ((unsigned int)*s); )
> *s = '\0';
>
> if (path.error)