Help script/about print the correct svn revision when in a non-English locale. Closes #4026.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3723 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper
2006-03-01 16:30:09 +00:00
parent a8d085adf0
commit 9ded584ec3
2 changed files with 11 additions and 6 deletions

View File

@@ -1,5 +1,7 @@
*SVN*
* Help script/about print the correct svn revision when in a non-English locale. #4026 [babie7a0@ybb.ne.jp]
* Add 'app' accessor to script/console as an instance of Integration::Session [Jamis Buck]
* Generator::Base#usage takes an optional message argument which defaults to Generator::Base#usage_message. [Jeremy Kemper]

View File

@@ -51,13 +51,16 @@ module Rails
table << '</table>'
end
end
protected
def svn_info
Dir.chdir("#{RAILS_ROOT}/vendor/rails") do
silence_stderr { `svn info` }
protected
def svn_info
env_lang, ENV['LC_ALL'] = ENV['LC_ALL'], 'C'
Dir.chdir("#{RAILS_ROOT}/vendor/rails") do
silence_stderr { `svn info` }
end
ensure
ENV['LC_ALL'] = env_lang
end
end
end
# The Ruby version and platform, e.g. "1.8.2 (powerpc-darwin8.2.0)".