# File lib/locale/posix.rb, line 24 def get_charset(locale) charset = `LANG=#{locale.to_str};locale charmap`.strip unless $? && $?.success? charset = "UTF-8" end charset end