mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/iconv/charset_alias.rb: pass block argument to outer local
variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
688ca71c13
commit
e7d267c42a
3 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Feb 3 20:10:52 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/iconv/charset_alias.rb: pass block argument to outer local
|
||||
variable.
|
||||
|
||||
Wed Feb 3 20:08:05 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* file.c (realpath_rec): rb_path_last_separator may return NULL.
|
||||
|
|
|
@ -95,7 +95,8 @@ end
|
|||
|
||||
target = OS
|
||||
opt = nil
|
||||
ARGV.options do |opt|
|
||||
ARGV.options do |opt2|
|
||||
opt = opt2
|
||||
opt.banner << " config.status map.rb"
|
||||
opt.on("--target OS") {|t| target = t}
|
||||
opt.parse! and (1..2) === ARGV.size
|
||||
|
|
|
@ -43,9 +43,9 @@ def charset_alias(config_charset, mapfile = nil)
|
|||
end
|
||||
src << " end" << "end"
|
||||
if mapfile
|
||||
open(mapfile, "wb") {|f| f.puts *src}
|
||||
open(mapfile, "wb") {|f| f.puts(*src)}
|
||||
else
|
||||
puts *src
|
||||
puts(*src)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue