Revision
3648
Author
lsansonetti@apple.com
Date
2010-02-26 22:47:52 -0800 (Fri, 26 Feb 2010)

Log Message

also comment the use of the bad regexp

Modified Paths

Diff

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