diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-02-23 11:02:00 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-02-23 11:02:00 (GMT) |
commit | 190f9219d5042698fbdede924a1cc8c684c567b6 (patch) | |
tree | b2c4ba1e72ab9ebcafd3aeb1addfe7add0db0518 /tools | |
parent | 9ae7f4dc4f153801d74c9c0aae74a815388c6d6a (diff) | |
parent | 956059093c78b2194ab303a729a15f0041dc8b2c (diff) | |
download | tcl-190f9219d5042698fbdede924a1cc8c684c567b6.zip tcl-190f9219d5042698fbdede924a1cc8c684c567b6.tar.gz tcl-190f9219d5042698fbdede924a1cc8c684c567b6.tar.bz2 |
Merge 8.7
Diffstat (limited to 'tools')
-rw-r--r-- | tools/encoding/Makefile | 5 | ||||
-rw-r--r-- | tools/encoding/txt2enc.c | 8 |
2 files changed, 3 insertions, 10 deletions
diff --git a/tools/encoding/Makefile b/tools/encoding/Makefile index 361239e..ff19492 100644 --- a/tools/encoding/Makefile +++ b/tools/encoding/Makefile @@ -71,11 +71,6 @@ encodings: clean txt2enc $(EUC_ENCODINGS) done @echo @echo Compiling special versions of encoding files. - @for p in ascii.txt; do \ - enc=`echo $$p | sed 's/\..*$$/\.enc/'`; \ - echo $$enc; \ - ./txt2enc -m $$p > $$enc; \ - done @for p in jis0208.txt; do \ enc=`echo $$p | sed 's/\..*$$/\.enc/'`; \ echo $$enc; \ diff --git a/tools/encoding/txt2enc.c b/tools/encoding/txt2enc.c index 7ee797b..32c7344 100644 --- a/tools/encoding/txt2enc.c +++ b/tools/encoding/txt2enc.c @@ -106,7 +106,7 @@ main(int argc, char **argv) fputs(" -f\tfallback character (default: QUESTION MARK)\n", stderr); fputs(" -t\toverride implicit type with single, double, or multi\n", stderr); fputs(" -s\tsymbol+ascii encoding\n", stderr); - fputs(" -m\tdon't implicitly include range 0080 to 00FF\n", stderr); + fputs(" -m\tdon't implicitly include 007F\n", stderr); return 1; } @@ -208,10 +208,8 @@ main(int argc, char **argv) toUnicode[0][i] = i; } if (fixmissing) { - for (i = 0x7F; i < 0xA0; i++) { - if (toUnicode[i] == NULL && toUnicode[0][i] == 0) { - toUnicode[0][i] = i; - } + if (toUnicode[0x7F] == NULL && toUnicode[0][0x7F] == 0) { + toUnicode[0][0x7F] = 0x7F; } } } |