diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-08-04 17:36:11 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-08-04 17:36:11 -0400 |
commit | 10bbee208367a5669230272a9a66a6fb144d9995 (patch) | |
tree | e69609645ac37031f469ddc7c62d787418543951 | |
parent | a91292907bef0e1f6a34f7b905de1a9dab8d1302 (diff) |
call setlocale()
-rw-r--r-- | strings.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -23,6 +23,7 @@ */ #define _POSIX_C_SOURCE 2 +#include <locale.h> #include <stdio.h> #include <stdlib.h> #include <ctype.h> @@ -75,6 +76,8 @@ static int strings(const char *path, size_t number, char format) int main(int argc, char *argv[]) { + setlocale(LC_ALL, ""); + int c; size_t number = 4; char format = 0; |