Re: setlocale() in cron

2020-02-11 Thread Ingo Schwarze
Hi, Jan Stary wrote on Mon, Feb 10, 2020 at 01:13:58PM +0100: > Why does cron(8) and crontab(1) need to setlocale()? Committed; thanks to millert@ for cross-checking. Ingo > Index: cron.c > === > RCS file: /cvs/src/usr.sbin/cron

Re: setlocale() in cron

2020-02-10 Thread Todd C . Miller
On Mon, 10 Feb 2020 22:16:04 +0100, Ingo Schwarze wrote: > Even if there were something locale-dependent in cron(8), and even > if we consider somebody using these program in a portable way on a > non-OpenBSD system, i believe a daemon started as root should not be > locale-dependent, so i'd like

Re: setlocale() in cron

2020-02-10 Thread Ingo Schwarze
Hi, Jan Stary wrote on Mon, Feb 10, 2020 at 01:13:58PM +0100: > Why does cron(8) and crontab(1) need to setlocale()? I looked through the *.c files in /usr/src/usr.sbin/cron/ and found the following locale-dependent functions: atrun.c: isalpha(3), isupper(3) cron.c: strtod(3) do_comm

setlocale() in cron

2020-02-10 Thread Jan Stary
Why does cron(8) and crontab(1) need to setlocale()? Jan Index: cron.c === RCS file: /cvs/src/usr.sbin/cron/cron.c,v retrieving revision 1.77 diff -u -p -r1.77 cron.c --- cron.c 23 Oct 2017 15:15:22 - 1.77 +++