summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/unicore/mktables7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/unicore/mktables b/lib/unicore/mktables
index 5da1d7c0ef..88c9746905 100644
--- a/lib/unicore/mktables
+++ b/lib/unicore/mktables
@@ -2502,7 +2502,12 @@ END
}
$handle{$addr} = $file_handle; # Cache the open file handle
- if ($v_version ge v3.2.0 && lc($file) ne 'unicodedata.txt') {
+ if ($v_version ge v3.2.0
+ && lc($file) ne 'unicodedata.txt'
+
+ # Unihan files used another format until v7
+ && ($v_version ge v7.0.0 || $file !~ /^Unihan/i))
+ {
$_ = <$file_handle>;
if ($_ !~ / - $string_version \. /x) {
chomp;