diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2020-06-11 13:51:19 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2020-06-11 13:51:19 +0000 |
commit | fccd40c690b5f8955f741f770b1cae107fe932a5 (patch) | |
tree | 22ed361aae6c78b0ba66569211e54f9b99e23aab /usr.bin/awk/main.c | |
parent | bb0b849fdec7aad14e169cf66fce14ec845232a2 (diff) |
Use setlocale(LC_CTYPE, "") instead of setlocale(LC_ALL, "")
This matches upstream awk and OpenBSD only implements LC_CTYPE anyway.
Diffstat (limited to 'usr.bin/awk/main.c')
-rw-r--r-- | usr.bin/awk/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/awk/main.c b/usr.bin/awk/main.c index d60ad02f29c..75feccc0aa5 100644 --- a/usr.bin/awk/main.c +++ b/usr.bin/awk/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.38 2020/06/10 21:06:09 millert Exp $ */ +/* $OpenBSD: main.c,v 1.39 2020/06/11 13:51:18 millert Exp $ */ /**************************************************************** Copyright (C) Lucent Technologies 1997 All Rights Reserved @@ -134,7 +134,7 @@ int main(int argc, char *argv[]) const char *fs = NULL; char *fn, *vn; - setlocale(LC_ALL, ""); + setlocale(LC_CTYPE, ""); setlocale(LC_NUMERIC, "C"); /* for parsing cmdline & prog */ cmdname = __progname; |