From 1a9a3c394426eaeea17cc7b8dabbaded30c19aab Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 11 Nov 2014 10:18:13 +0000 Subject: [PATCH] unicode_norm_gen.tmpl: fix build error * template/unicode_norm_gen.tmpl: fix build error on CentOS 5 with ruby 1.8.5 which lacks Symbol#to_proc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- template/unicode_norm_gen.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/unicode_norm_gen.tmpl b/template/unicode_norm_gen.tmpl index 6ba11b8464..955c858599 100644 --- a/template/unicode_norm_gen.tmpl +++ b/template/unicode_norm_gen.tmpl @@ -73,7 +73,7 @@ composition_exclusions = vpath.open("#{InputDataDir}/CompositionExclusions.txt") abort "No file version in #{f.path}: #{line}" (unicode_version ||= version) == version or abort "Unicode version of directory (#{unicode_version}) and file (#{version}) mismatch" - f.grep(/^[A-Z0-9]{4,5}/, &:hex) + f.grep(/^[A-Z0-9]{4,5}/) {|code| code.hex} } decomposition_table = {}