# File lib/locale/driver/env.rb, line 41 def locale lc_all = Private.parse(ENV["LC_ALL"]) return lc_all if lc_all lc_messages = Private.parse(ENV["LC_MESSAGES"]) lang = Private.parse(ENV["LANG"]) tag = lc_messages || lang return nil if tag.nil? lc_ctype = Private.parse(ENV["LC_CTYPE"]) tag.charset = lc_ctype.charset if lc_ctype tag end