From 10bbee208367a5669230272a9a66a6fb144d9995 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sun, 4 Aug 2019 17:36:11 -0400 Subject: call setlocale() --- strings.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/strings.c b/strings.c index 24a9a6c..8bbabc6 100644 --- a/strings.c +++ b/strings.c @@ -23,6 +23,7 @@ */ #define _POSIX_C_SOURCE 2 +#include #include #include #include @@ -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; -- cgit v1.2.1