X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=ncurses%2Fbase%2FMKunctrl.awk;fp=ncurses%2Fbase%2FMKunctrl.awk;h=e5362bd60d150d400927fe4a954f498b5e247e37;hb=19c0d4acfed45a13096019aa305a63b657fdb24c;hp=9a2a6db63876c9fc4474ac89b979656c59c3722e;hpb=c5ffd7a7937e457fc772888b61a15544e4244c32;p=ncurses.git diff --git a/ncurses/base/MKunctrl.awk b/ncurses/base/MKunctrl.awk index 9a2a6db6..e5362bd6 100644 --- a/ncurses/base/MKunctrl.awk +++ b/ncurses/base/MKunctrl.awk @@ -1,6 +1,6 @@ -# $Id: MKunctrl.awk,v 1.29 2020/02/02 23:34:34 tom Exp $ +# $Id: MKunctrl.awk,v 1.30 2024/02/03 21:09:14 tom Exp $ ############################################################################## -# Copyright 2020 Thomas E. Dickey # +# Copyright 2020,2024 Thomas E. Dickey # # Copyright 1998-2012,2017 Free Software Foundation, Inc. # # # # Permission is hereby granted, free of charge, to any person obtaining a # @@ -144,7 +144,7 @@ END { print "\tint check = (int) ChCharOf(ch);" print "\tconst char *result;" print "" - print "(void) sp;" + print "\t(void) sp;" print "\tif (check >= 0 && check < (int)SIZEOF(unctrl_table)) {" print "#if NCURSES_EXT_FUNCS" print "\t\tif ((sp != 0)" @@ -155,6 +155,7 @@ END { print "\t\telse" print "\t\tif ((check >= 160)" print "\t\t && (check < 256)" + print "\t\t && !_nc_unicode_locale()" print "\t\t && ((sp != 0)" print "\t\t && ((sp->_legacy_coding > 0)" print "\t\t || (sp->_legacy_coding == 0"