diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-07-04 20:56:08 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-07-04 20:56:08 +0000 |
commit | 012067d4c1046f0bdfbac0544259949480c483ba (patch) | |
tree | d534050577a8807ede44adbd163e11865a39b344 /usr.bin | |
parent | 864923e55b5196235d2aaae1c983e1ce92442c07 (diff) |
Set locale per IEEE 1003.2(1992)
Diffstat (limited to 'usr.bin')
-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 |