* tool/transcode-tblgen.rb (citrus_decode_mapsrc): support older 1.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
747d9b3925
commit
783541e0a4
@ -1,3 +1,7 @@
|
|||||||
|
Thu Sep 4 10:43:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* tool/transcode-tblgen.rb (citrus_decode_mapsrc): support older 1.8.
|
||||||
|
|
||||||
Thu Sep 4 10:33:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu Sep 4 10:33:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* io.c (argf_next_argv, argf_set_encoding): copy struct wise.
|
* io.c (argf_next_argv, argf_set_encoding): copy struct wise.
|
||||||
|
@ -486,13 +486,13 @@ def citrus_decode_mapsrc(ces, csid, mapsrcs)
|
|||||||
mapsrcs.split(',').each do |mapsrc|
|
mapsrcs.split(',').each do |mapsrc|
|
||||||
path = [$srcdir]
|
path = [$srcdir]
|
||||||
mode = nil
|
mode = nil
|
||||||
if mapsrc.start_with?('UCS')
|
if mapsrc.rindex('UCS', 0)
|
||||||
mode = :from_ucs
|
mode = :from_ucs
|
||||||
from = mapsrc[4..-1]
|
from = mapsrc[4..-1]
|
||||||
path << SUBDIR.find{|x| from.start_with?(x) }
|
path << SUBDIR.find{|x| from.rindex(x, 0) }
|
||||||
else
|
else
|
||||||
mode = :to_ucs
|
mode = :to_ucs
|
||||||
path << SUBDIR.find{|x| mapsrc.start_with?(x) }
|
path << SUBDIR.find{|x| mapsrc.rindex(x, 0) }
|
||||||
end
|
end
|
||||||
path << mapsrc.gsub(':', '@')
|
path << mapsrc.gsub(':', '@')
|
||||||
path = File.join(*path)
|
path = File.join(*path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user