From 66dab29703f2447d7057f1a4e6e2ce75d051bb47 Mon Sep 17 00:00:00 2001 From: hjp Date: Wed, 19 Jan 2000 11:31:57 +0000 Subject: [PATCH] Made locale aware. --- charhist/charhist.c | 2 ++ 1 file changed, 2 insertions(+) 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]++; }