Gets the charset from environment variable or the result of "locale charmap" or nil.
Returns: the system charset.
# File lib/locale/driver/posix.rb, line 35 def charset charset = ::Locale::Driver::Env.charset unless charset charset = `locale charmap`.strip unless $? && $?.success? charset = nil end end charset end
Gets the locales from environment variables. (LANGUAGE > LC_ALL > LC_MESSAGES > LANG) Only LANGUAGE accept plural languages such as "nl_BE;
Returns: an Array of the locale as Locale::Tag::Posix or nil.
# File lib/locale/driver/posix.rb, line 28 def locales ::Locale::Driver::Env.locales end
Generated with the Darkfish Rdoc Generator 2.