]> the.earth.li Git - unicode-expand.git/commit
Fall back to hex value when we can't look up a character
authorJonathan McDowell <noodles@earth.li>
Sat, 5 Jan 2019 15:39:32 +0000 (15:39 +0000)
committerJonathan McDowell <noodles@earth.li>
Sat, 5 Jan 2019 15:39:32 +0000 (15:39 +0000)
commitb3aaed733f8f8717d208287a6da15be08e34b05f
tree5eb22b3aecddf1758c86f53344377cda93342d7f
parent46d0b69d9e61e66214c80b81be91b9291e1677cf
Fall back to hex value when we can't look up a character

We're dependant on Perl for Unicode tables, so if it doesn't have a
recent enough set of definitions (e.g. Debian Stretch only has up to
Unicode 8) we were getting uninitialized value warnings for Unicode 9/10
characters. Fall back to outputting the hex value for the character.
Reported by Lars Wirzenius.
unicode-expand.pl