Created
January 25, 2011 20:36
-
-
Save ddollar/795603 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
argon:~/Code/lang-demo LANG=US-ASCII ruby -e 'puts ENCODING' | |
US-ASCII | |
argon:~/Code/lang-demo LANG=UTF-8 ruby -e 'puts ENCODING' | |
UTF-8 | |
argon:~/Code/lang-demo cat demo.rb | |
puts __ENCODING__ | |
puts Encoding.default_external | |
argon:~/Code/lang-demo LANG=US-ASCII ruby demo.rb | |
US-ASCII | |
US-ASCII | |
argon:~/Code/lang-demo LANG=UTF-8 ruby demo.rb | |
US-ASCII | |
UTF-8 |
1.9.2
More specifically, ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.5.0]
Thought so. Interesting.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ruby -v