diff options
author | ache <ache@FreeBSD.org> | 1995-12-13 12:54:26 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-12-13 12:54:26 +0000 |
commit | f1fd799dda89dd5a855be52614d34655472d52e1 (patch) | |
tree | 2280ef0ae5ef6a9830c566a9f14d3eff4b1303f4 /usr.bin/msgs/msgs.c | |
parent | 37543c2e2488d4771d9363229c9006a02012d6a0 (diff) | |
download | FreeBSD-src-f1fd799dda89dd5a855be52614d34655472d52e1.zip FreeBSD-src-f1fd799dda89dd5a855be52614d34655472d52e1.tar.gz |
Localize it
Diffstat (limited to 'usr.bin/msgs/msgs.c')
-rw-r--r-- | usr.bin/msgs/msgs.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/msgs/msgs.c b/usr.bin/msgs/msgs.c index be1b407..0143e42 100644 --- a/usr.bin/msgs/msgs.c +++ b/usr.bin/msgs/msgs.c @@ -73,6 +73,7 @@ static char sccsid[] = "@(#)msgs.c 8.1 (Berkeley) 6/6/93"; #include <sys/stat.h> #include <ctype.h> #include <errno.h> +#include <locale.h> #include <pwd.h> #include <setjmp.h> #include <termios.h> @@ -160,7 +161,7 @@ int argc; char *argv[]; #ifdef UNBUFFERED setbuf(stdout, NULL); #endif - + setlocale(LC_ALL, ""); time(&t); setuid(uid = getuid()); @@ -854,9 +855,9 @@ FILE *infile; char * nxtfld(s) -char *s; +unsigned char *s; { - if (*s) while (*s && *s > ' ') s++; /* skip over this field */ - if (*s) while (*s && *s <= ' ') s++; /* find start of next field */ + if (*s) while (*s && !isspace(*s)) s++; /* skip over this field */ + if (*s) while (*s && isspace(*s)) s++; /* find start of next field */ return (s); } |