зеркало из https://github.com/github/ruby.git
revert last commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
01d7d19077
Коммит
298d66296d
|
@ -1,7 +1,3 @@
|
||||||
Tue Sep 2 18:34:57 2008 Tanaka Akira <akr@fsij.org>
|
|
||||||
|
|
||||||
* enc/trans/make_transdb.rb: error message improved.
|
|
||||||
|
|
||||||
Tue Sep 2 14:05:50 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
Tue Sep 2 14:05:50 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* enc/trans/utf_16_32.trans (from_UTF_8): rename from to_UTF_16BE
|
* enc/trans/utf_16_32.trans (from_UTF_8): rename from to_UTF_16BE
|
||||||
|
|
|
@ -19,17 +19,16 @@ transdirs.each do |transdir|
|
||||||
}.each do |fn|
|
}.each do |fn|
|
||||||
next if files[fn]
|
next if files[fn]
|
||||||
files[fn] = true
|
files[fn] = true
|
||||||
path = File.join(transdir,fn)
|
open(File.join(transdir,fn)) do |f|
|
||||||
open(path) do |f|
|
|
||||||
f.each_line do |line|
|
f.each_line do |line|
|
||||||
if (/^static const rb_transcoder/ =~ line)..(/"(.*?)"\s*,\s*"(.*?)"/ =~ line)
|
if (/^static const rb_transcoder/ =~ line)..(/"(.*?)"\s*,\s*"(.*?)"/ =~ line)
|
||||||
if $1 && $2
|
if $1 && $2
|
||||||
from_to = "%s to %s" % [$1, $2]
|
from_to = "%s to %s" % [$1, $2]
|
||||||
if converters[from_to]
|
if converters[from_to]
|
||||||
raise ArgumentError, '%s:%d: transcode "%s" is already registered at %s:%d' %
|
raise ArgumentError, '%s:%d: transcode "%s" is already registered (%s:%d)' %
|
||||||
[path, $., from_to, *converters[from_to].values_at(2, 3)]
|
[fn, $., from_to, *converters[from_to].values_at(2, 3)]
|
||||||
else
|
else
|
||||||
converters[from_to] = [$1, $2, path, $.]
|
converters[from_to] = [$1, $2, fn[0..-3], $.]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Загрузка…
Ссылка в новой задаче