diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2023-09-18 19:32:20 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2023-09-18 19:32:20 +0000 |
commit | f5a82c30f282157f9d8006923716d6986c07dc5c (patch) | |
tree | 4ae63f3676910bdd3da7342aeda988735131c47f /usr.bin/awk/awk.h | |
parent | df1ad7a2370e6466128088bc2f14f629e72515aa (diff) |
Disable utf-8 for non-multibyte locales, such as C or POSIX.
This makes it possible to get the old awk behavior (where chars are
bytes) by setting LC_CTYPE to C or POSIX. OK schwarze@
Diffstat (limited to 'usr.bin/awk/awk.h')
-rw-r--r-- | usr.bin/awk/awk.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/awk/awk.h b/usr.bin/awk/awk.h index bd491ad2908..a57e27eaffd 100644 --- a/usr.bin/awk/awk.h +++ b/usr.bin/awk/awk.h @@ -1,4 +1,4 @@ -/* $OpenBSD: awk.h,v 1.29 2023/09/17 14:49:44 millert Exp $ */ +/* $OpenBSD: awk.h,v 1.30 2023/09/18 19:32:19 millert Exp $ */ /**************************************************************** Copyright (C) Lucent Technologies 1997 All Rights Reserved @@ -66,6 +66,8 @@ extern bool do_posix; /* true if POSIXLY_CORRECT set */ #define RECSIZE (8 * 1024) /* sets limit on records, fields, etc., etc. */ extern int recsize; /* size of current record, orig RECSIZE */ +extern size_t awk_mb_cur_max; /* max size of a multi-byte character */ + extern char EMPTY[]; /* this avoid -Wwritable-strings issues */ extern char **FS; extern char **RS; |