[macruby-changes] [2522] MacRuby/trunk/lib/pathname.rb

source_changes at macosforge.org source_changes at macosforge.org
Tue Sep 8 20:04:34 PDT 2009


Revision: 2522
          http://trac.macosforge.org/projects/ruby/changeset/2522
Author:   lsansonetti at apple.com
Date:     2009-09-08 20:04:34 -0700 (Tue, 08 Sep 2009)
Log Message:
-----------
work around a multibyte oniguruma problem

Modified Paths:
--------------
    MacRuby/trunk/lib/pathname.rb

Modified: MacRuby/trunk/lib/pathname.rb
===================================================================
--- MacRuby/trunk/lib/pathname.rb	2009-09-09 02:26:23 UTC (rev 2521)
+++ MacRuby/trunk/lib/pathname.rb	2009-09-09 03:04:34 UTC (rev 2522)
@@ -204,7 +204,9 @@
     path = path.__send__(TO_PATH) if path.respond_to? TO_PATH
     @path = path.dup
 
-    if /\0/ =~ @path
+    # XXX work around a multibyte oniguruma problem in MacRuby
+    #if /\0/ =~ @path
+    if @path.include?("\0")
       raise ArgumentError, "pathname contains \\0: #{@path.inspect}"
     end
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090908/783dbda7/attachment-0001.html>


More information about the macruby-changes mailing list