aboutsummaryrefslogtreecommitdiffstats
path: root/regexp/parse-unidata.awk
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2020-04-15 05:10:08 +0000
committerNIIBE Yutaka <[email protected]>2020-04-15 05:10:08 +0000
commit50b320952e99ea20f9b77c6c501280fe37fd2598 (patch)
tree0215ee4665cba0a2b8853583fa978def9862eebd /regexp/parse-unidata.awk
parentsm: Support rsaPSS verification also for CMS signatures. (diff)
downloadgnupg-50b320952e99ea20f9b77c6c501280fe37fd2598.tar.gz
gnupg-50b320952e99ea20f9b77c6c501280fe37fd2598.zip
regexp: Fix generation of _unicode_mapping.c.
* configure.ac (AWK_HEX_NUMBER_OPTION): Detect GNU Awk. * regexp/Makefile.am: Use AWK_HEX_NUMBER_OPTION. * regexp/parse-unidata.awk: Don't use strtonum. GnuPG-bug-id: 4915 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to '')
-rw-r--r--regexp/parse-unidata.awk6
1 files changed, 3 insertions, 3 deletions
diff --git a/regexp/parse-unidata.awk b/regexp/parse-unidata.awk
index 8bdc0bf8b..b9ed351ee 100644
--- a/regexp/parse-unidata.awk
+++ b/regexp/parse-unidata.awk
@@ -32,17 +32,17 @@ BEGIN {
}
{
- code = strtonum(("0x" $1))
+ code = int("0x" $1)
name = $2
class = $3
upper = $13
lower = $14
title = $15
- if (code <= 0x7f) {
+ if (code <= 127) {
next
}
- if (code > 0xffff) {
+ if (code > 65535) {
next
}
if ($3 !~ /^L.*/) {