diff options
-rwxr-xr-x | tool/enc-unicode.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/enc-unicode.rb b/tool/enc-unicode.rb index 220c46c8ef..baa05da496 100755 --- a/tool/enc-unicode.rb +++ b/tool/enc-unicode.rb @@ -307,7 +307,7 @@ end def data_foreach(name, &block) fn = get_file(name) warn "Reading #{name}" - pat = /^# #{name.sub(/\./, '-([\\d.]+)\\.')}/ + pat = /^# #{File.basename(name).sub(/\./, '-([\\d.]+)\\.')}/ File.open(fn, 'rb') do |f| line = f.gets unless pat =~ line |