Simplify Unicode::UCD::openunicode() and callers
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Thu, 28 Dec 2017 17:24:43 +0000 (17:24 +0000)
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Thu, 28 Dec 2017 18:06:51 +0000 (18:06 +0000)
commitb788e8d877836b749025872e40ca34429cd45f92
tree09696cc52f4f1ff036401490c445102bc1c71705
parent355c3ab756cb5e5a562d9172ca66afcebe30a822
Simplify Unicode::UCD::openunicode() and callers

Get rid of the file-global filehandles and the unused filename return
value, instead return the filehandle and assign it to a lexical
variable.  Also don't bother checking the return value; it croaks on
failure anyway.

In passing, eliminate erroneous assignment of {} to %CASESPEC for
Unicode < 2.1.8.
charclass_invlists.h
lib/Unicode/UCD.pm
regcharclass.h