diff --git a/charhist/charhist.c b/charhist/charhist.c index 0017be8..dd59afb 100644 --- a/charhist/charhist.c +++ b/charhist/charhist.c @@ -1,4 +1,5 @@ #include +#include #include #include @@ -7,6 +8,7 @@ long hist[UCHAR_MAX+1]; int main (int argc, char **argv) { int c; + setlocale(LC_ALL, ""); while ((c = getchar()) != EOF) { hist[c]++; }