mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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 <gniibe@fsij.org>
This commit is contained in:
parent
6c28d9343e
commit
50b320952e
3 changed files with 15 additions and 4 deletions
|
@ -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.*/) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue