aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-03-01 16:30:09 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-03-01 16:30:09 +0000
commit9ded584ec3d36f480be31f3937cc32d033bb2f5d (patch)
tree5e793d31fca4256dfb93fcbe5e6f69761e9915c0 /railties/lib
parenta8d085adf08b3e3994d5fbb144a278301bf329cf (diff)
downloadrails-9ded584ec3d36f480be31f3937cc32d033bb2f5d.tar.gz
rails-9ded584ec3d36f480be31f3937cc32d033bb2f5d.tar.bz2
rails-9ded584ec3d36f480be31f3937cc32d033bb2f5d.zip
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
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails_info.rb15
1 files changed, 9 insertions, 6 deletions
diff --git a/railties/lib/rails_info.rb b/railties/lib/rails_info.rb
index eb60955db5..ec88f9baef 100644
--- a/railties/lib/rails_info.rb
+++ b/railties/lib/rails_info.rb
@@ -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)".