Permalink
Browse files

Help script/about print the correct svn revision when in a non-Englis…

…h locale. Closes #4026.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3723 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent a8d085a commit 9ded584ec3d36f480be31f3937cc32d033bb2f5d @jeremy jeremy committed Mar 1, 2006
Showing with 11 additions and 6 deletions.
  1. +2 −0 railties/CHANGELOG
  2. +9 −6 railties/lib/rails_info.rb
View
@@ -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]
@@ -51,13 +51,16 @@ def to_html
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)".

0 comments on commit 9ded584

Please sign in to comment.