Why does who(1) need to setlocale()?
Jan
Index: who.c
===================================================================
RCS file: /cvs/src/usr.bin/who/who.c,v
retrieving revision 1.30
diff -u -p -r1.30 who.c
--- who.c 12 Jul 2021 15:09:20 -0000 1.30
+++ who.c 10 Nov 2021 12:37:05 -0000
@@ -44,7 +44,6 @@
#include <unistd.h>
#include <time.h>
#include <err.h>
-#include <locale.h>
void output(struct utmp *);
void output_labels(void);
@@ -71,8 +70,6 @@ main(int argc, char *argv[])
FILE *ufp;
char *t;
int c;
-
- setlocale(LC_ALL, "");
if (pledge("stdio unveil rpath getpw", NULL) == -1)
err(1, "pledge");