diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-08-05 14:08:20 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-08-05 14:08:20 -0400 |
commit | 7b7798dc92170c6d1399ca0e683de892cc154b61 (patch) | |
tree | b581ed6cf488a2ebec1ffa7c5a3fad36949218a4 /cmp.c | |
parent | ea45616fdefbc5c8945f5b3b7644920a05af3e3d (diff) |
remember to setlocale()
Diffstat (limited to 'cmp.c')
-rw-r--r-- | cmp.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -24,6 +24,7 @@ #define _POSIX_C_SOURCE 2 #include <errno.h> +#include <locale.h> #include <stdio.h> #include <stdint.h> #include <stdlib.h> @@ -48,6 +49,8 @@ FILE *fileopen(const char *path) int main(int argc, char *argv[]) { + setlocale(LC_ALL, ""); + int c; enum { FIRSTONLY, ALL, SILENT } output = FIRSTONLY; |