Stefan Sperling wrote: > > Just remove the setlocale() call to leave sleep(1) in the default "C" locale.
here's a diff that does that. you're right, there's no need to rewrite ctype if it hasn't been altered. I also checked that there are no calls to err() or strerror() or whatever, and so there's no need to load localized klingon error messages or whatever else setlocale does. Index: sleep.c =================================================================== RCS file: /cvs/src/bin/sleep/sleep.c,v retrieving revision 1.20 diff -u -p -r1.20 sleep.c --- sleep.c 21 Nov 2013 15:54:46 -0000 1.20 +++ sleep.c 21 Sep 2015 17:21:17 -0000 @@ -32,7 +32,6 @@ #include <ctype.h> #include <errno.h> -#include <locale.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> @@ -53,8 +52,6 @@ main(int argc, char *argv[]) long nsecs = 0; struct timespec rqtp; int i; - - setlocale(LC_ALL, ""); signal(SIGALRM, alarmh);