title: Ruby cannot see NLS_LANG environmental variable
body: <p>I'm running a ruby script on CentOS, and installed ruby via rvm (1.9.3).</p>
  
  <p>I've set the NLS_LANG variable in .bash_profile.</p>
  
  <pre><code>[app@box stasis]$ echo $NLS_LANG
  en_US.UTF-8
  [app@box stasis]$ which ruby
  ~/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
  </code></pre>
  
  <p>However when trying to access it via ruby (which the oci8 driver does), it cannot find it:</p>
  
  <pre><code> 1.9.3-p194 :001 &gt; ENV['NLS_LANG']
   =&gt; nil 
  </code></pre>
  
  <p>Accessing other vars seems to work:</p>
  
  <pre><code> 1.9.3-p194 :004 &gt; ENV['USER']
   =&gt; "app"
  </code></pre>
  
  <p>My script shows the following: <code>Warning: NLS_LANG is not set. fallback to US7ASCII.</code></p>
  
  <p>Thing is I'm running sqlplus from the ruby script (to execute some .sql files), and special characters are all messed up.</p>
  
  <p>How can I get ruby to see the value?</p>