diff options
Diffstat (limited to 'usr.bin/awk/main.c')
-rw-r--r-- | usr.bin/awk/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/awk/main.c b/usr.bin/awk/main.c index 02c01ebcf4b..cfd456a1b52 100644 --- a/usr.bin/awk/main.c +++ b/usr.bin/awk/main.c @@ -30,6 +30,7 @@ char *version = "version May 27, 1996"; #include <stdlib.h> #include <string.h> #include <signal.h> +#include <locale.h> #include "awk.h" #include "awkgram.h" @@ -53,6 +54,8 @@ int main(int argc, char *argv[]) char *fs = NULL, *marg; int temp; + setlocale(LC_ALL, ""); + if ((cmdname = strrchr(argv[0], '/')) != NULL) cmdname++; else |