diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-08-06 08:30:33 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-08-06 08:30:33 -0400 |
commit | 02c966fdcc80433702b41c21ffca18e446887e6e (patch) | |
tree | aee934df76fbce7d89954cb1a4a36f4e17bd746f | |
parent | 4bcdd1ef7c15a195a720ef9c98d68424aa58ba73 (diff) |
call setlocale()
-rw-r--r-- | uname.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -23,12 +23,15 @@ */ #define _POSIX_C_SOURCE 2 +#include <locale.h> #include <stdio.h> #include <sys/utsname.h> #include <unistd.h> int main(int argc, char *argv[]) { + setlocale(LC_ALL, ""); + enum { MACHINE = 1<<0, NODENAME = 1<<1, RELEASE = 1<<2, SYSNAME = 1<<3, VERSION = 1<<4 } show = 0; |