Modified: MacRuby/branches/icu/lib/irb/locale.rb (3647 => 3648)
--- MacRuby/branches/icu/lib/irb/locale.rb 2010-02-27 06:43:25 UTC (rev 3647)
+++ MacRuby/branches/icu/lib/irb/locale.rb 2010-02-27 06:47:52 UTC (rev 3648)
@@ -35,6 +35,7 @@
def initialize(locale = nil)
@lang = @territory = @encoding_name = @modifier = nil
@locale = locale || ENV["IRB_LANG"] || ENV["LC_MESSAGES"] || ENV["LC_ALL"] || ENV["LANG"] || "C"
+=begin
if m = LOCALE_NAME_RE.match(@locale)
@lang, @territory, @encoding_name, @modifier = m[:language], m[:territory], m[:codeset], m[:modifier]
@@ -46,6 +47,7 @@
@encoding = Encoding.find(@encoding_name) rescue nil
end
end
+=end
@encoding ||= (Encoding.find('locale') rescue Encoding::ASCII_8BIT)
end