aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2019-04-07 21:43:38 +0300
committerArnold D. Robbins <arnold@skeeve.com>2019-04-07 21:43:38 +0300
commit8ae4556cd755b7902afba7ab89313d5aa8801173 (patch)
tree2bb7041df050d8744d7fa2517ac0aca460ea7a9b /main.c
parent12a5a583e98ba7a6886407df6df74a1dbb65ae64 (diff)
downloadegawk-8ae4556cd755b7902afba7ab89313d5aa8801173.tar.gz
egawk-8ae4556cd755b7902afba7ab89313d5aa8801173.tar.bz2
egawk-8ae4556cd755b7902afba7ab89313d5aa8801173.zip
Single-byte locales use locale settings for ignoring case.
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.c b/main.c
index e2bcd724..d6e34266 100644
--- a/main.c
+++ b/main.c
@@ -320,6 +320,10 @@ main(int argc, char **argv)
/* init the cache for checking bytes if they're characters */
init_btowc_cache();
+ /* set up the single byte case table */
+ if (gawk_mb_cur_max == 1)
+ load_casetable();
+
if (do_nostalgia)
nostalgia();