Why does logname(1) need to setlocale?

        Jan

Index: logname.c
===================================================================
RCS file: /cvs/src/usr.bin/logname/logname.c,v
retrieving revision 1.9
diff -u -p -r1.9 logname.c
--- logname.c   9 Oct 2015 01:37:08 -0000       1.9
+++ logname.c   12 Oct 2016 08:35:11 -0000
@@ -32,7 +32,6 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <locale.h>
 #include <unistd.h>
 #include <err.h>
 
@@ -43,8 +42,6 @@ main(int argc, char *argv[])
 {
        int ch;
        char *p;
-
-       setlocale(LC_ALL, "");
 
        if (pledge("stdio", NULL) == -1)
                err(1, "pledge");

Reply via email to