locale_from_env (Locale::SystemBase)

    # File lib/locale/base.rb, line 32
        def locale_from_env
          locale = nil
          # At least one environment valiables should be set on *nix system.
          [ENV["LC_ALL"], ENV["LC_MESSAGES"], ENV["LANG"]].each do |loc|
            if loc != nil and loc.size > 0
              locale = Locale::Object.new(loc)
              locale.charset ||= get_charset(locale)
              break
            end
          end
          locale
        end