summaryrefslogtreecommitdiffstats
path: root/regexp
diff options
context:
space:
mode:
Diffstat (limited to 'regexp')
-rw-r--r--regexp/Makefile.am3
-rw-r--r--regexp/parse-unidata.awk6
2 files changed, 5 insertions, 4 deletions
diff --git a/regexp/Makefile.am b/regexp/Makefile.am
index a4e9fce0b..307aacf9d 100644
--- a/regexp/Makefile.am
+++ b/regexp/Makefile.am
@@ -34,5 +34,6 @@ BUILT_SOURCES = _unicode_mapping.c
MAINTAINERCLEANFILES = _unicode_mapping.c
_unicode_mapping.c: parse-unidata.awk UnicodeData.txt
- $(AWK) -f $(srcdir)/parse-unidata.awk $(srcdir)/UnicodeData.txt >$@
+ $(AWK) $(AWK_HEX_NUMBER_OPTION) -f $(srcdir)/parse-unidata.awk \
+ $(srcdir)/UnicodeData.txt >$@
endif
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.*/) {