diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-11 10:18:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-11 10:18:13 +0000 |
commit | 1a9a3c394426eaeea17cc7b8dabbaded30c19aab (patch) | |
tree | f9f57352fadfec087e98d7e69cac96841fc10f11 | |
parent | d24e72500901345ffa3ff6f59cd105fe55dd8b15 (diff) | |
download | ruby-1a9a3c394426eaeea17cc7b8dabbaded30c19aab.tar.gz |
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
-rw-r--r-- | template/unicode_norm_gen.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
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 = {} |