From b5cb7536b31df9cae793ef9f059273d2595fd1eb Mon Sep 17 00:00:00 2001 From: jtc Date: Fri, 31 Dec 1993 19:33:02 +0000 Subject: [PATCH] Localization changes + minor bug fix. --- usr.bin/touch/touch.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/usr.bin/touch/touch.c b/usr.bin/touch/touch.c index 62575c8b324b..187af2291664 100644 --- a/usr.bin/touch/touch.c +++ b/usr.bin/touch/touch.c @@ -39,21 +39,22 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)touch.c 5.5 (Berkeley) 3/7/93";*/ -static char rcsid[] = "$Id: touch.c,v 1.7 1993/09/16 21:44:35 cgd Exp $"; +static char rcsid[] = "$Id: touch.c,v 1.8 1993/12/31 19:33:02 jtc Exp $"; #endif /* not lint */ #include #include #include -#include #include #include #include #include #include +#include #include #include +#include int rw __P((char *, struct stat *, int)); void stime_arg1 __P((char *, struct timeval *)); @@ -75,6 +76,8 @@ main(argc, argv) int aflag, cflag, fflag, mflag, ch, fd, len, rval, timeset; char *p; + setlocale(LC_ALL, ""); + aflag = cflag = fflag = mflag = timeset = 0; if (gettimeofday(&tv[0], NULL)) err(1, "gettimeofday"); @@ -174,6 +177,7 @@ main(argc, argv) if (timeset) { rval = 1; warn("%s", *argv); + continue; } /*