diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-31 08:59:09 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-31 08:59:09 +0000 |
commit | 6e37ddcfbddd5053655d38bf8dc827d8c2ea3379 (patch) | |
tree | 9ca0acfa40de653d139f73e730f21038b0a6d278 /lib | |
parent | 70b98dd4af780486e2159e04db766e7f6453d7d8 (diff) |
* lib/mkmf.rb (Logging.log_open): opens in binary mode to get rid of
extra CR.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mkmf.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 89b64bcad3..a403fa81d6 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -232,9 +232,13 @@ module Logging @postpone = 0 @quiet = $extmk - def self::open - @log ||= File::open(@logfile, 'w') + def self::log_open + @log ||= File::open(@logfile, 'wb') @log.sync = true + end + + def self::open + log_open $stderr.reopen(@log) $stdout.reopen(@log) yield @@ -244,8 +248,7 @@ module Logging end def self::message(*s) - @log ||= File::open(@logfile, 'w') - @log.sync = true + log_open @log.printf(*s) end |