Change mktables output for some tables to use hex
authorKarl Williamson <public@khwilliamson.com>
Thu, 17 Oct 2013 03:44:23 +0000 (21:44 -0600)
committerKarl Williamson <public@khwilliamson.com>
Thu, 17 Oct 2013 04:17:09 +0000 (22:17 -0600)
commit2430372414b6a23811d2683eed43009456f4f8ea
treef89748049b00cc82253e7c2993c1e9e45fb9a638
parentcb4e82463ea6b3435de7bb0b1973c230d010b6c3
Change mktables output for some tables to use hex

This makes all the tables in the lib/unicore/To directory that map from
code point to code point be formatted so that the mapped-to code point
is expressed as hexadecimal.

This allows for uniform treatment of these tables in utf8.c, and removes
the final use of strtol() in the (non-CPAN) core.  strtol() should be
avoided because it is subject to locale rules, and some older libc
implementations have been buggy.  It was used because Perl doesn't have
an efficient way of parsing a decimal number and advancing the parse
pointer to beyond it; we do have such a method for hex numbers.

The input to mktables published by Unicode is also in hex, so this now
conforms to that convention.

This also will facilitate the new work currently being done to read in
the tables that find the closing bracket given an opening one.
lib/Unicode/UCD.pm
lib/Unicode/UCD.t
lib/unicore/mktables
utf8.c