From 6c8aa0845f91038e08ff48f668d9c4318b93b114 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 28 Jan 2021 22:21:42 +0200 Subject: Fix a bug with -b option. --- main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index ea3b3a59..5b153bc3 100644 --- a/main.c +++ b/main.c @@ -359,11 +359,12 @@ main(int argc, char **argv) if (do_binary) { if (do_posix) warning(_("`--posix' overrides `--characters-as-bytes'")); - else + else { gawk_mb_cur_max = 1; /* hands off my data! */ #if defined(LC_ALL) - setlocale(LC_ALL, "C"); + setlocale(LC_ALL, "C"); #endif + } } if (do_lint && os_is_setuid()) -- cgit v1.2.3