[macruby-changes] [3648] MacRuby/branches/icu/lib/irb/locale.rb

source_changes at macosforge.org source_changes at macosforge.org
Fri Feb 26 22:47:52 PST 2010


Revision: 3648
          http://trac.macosforge.org/projects/ruby/changeset/3648
Author:   lsansonetti at 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:
--------------
    MacRuby/branches/icu/lib/irb/locale.rb

Modified: MacRuby/branches/icu/lib/irb/locale.rb
===================================================================
--- 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
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100226/b9332caa/attachment.html>


More information about the macruby-changes mailing list