[MacRuby-devel] [MacRuby] #546: REXML text.rb fails: premature end of char-class

MacRuby ruby-noreply at macosforge.org
Sun Jan 10 18:06:23 PST 2010


#546: REXML text.rb fails: premature end of char-class
------------------------------+---------------------------------------------
 Reporter:  macwoj@…          |       Owner:  lsansonetti@…              
     Type:  defect            |      Status:  new                        
 Priority:  blocker           |   Milestone:  MacRuby 0.5                
Component:  MacRuby           |    Keywords:  0.5 rexml text.rb premature
------------------------------+---------------------------------------------
 Im using Leopard (built 0.5 from trunk)
 {{{require 'rexml/document'}}} causes[[BR]]
 {{{
 /Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/1.9.0/rexml/text.rb:53:
 premature end of char-class: /^(
            [\x09\x0A\x0D\x20-\x7E]            # ASCII
          | [\xC2-\xDF][\x80-\xBF]             # non-overlong 2-byte
          |  \xE0[\xA0-\xBF][\x80-\xBF]        # excluding overlongs
          | [\xE1-\xEC\xEE][\x80-\xBF]{2}      # straight 3-byte
          |  \xEF[\x80-\xBE]{2}                #
          |  \xEF\xBF[\x80-\xBD]               # excluding U+fffe and
 U+ffff
          |  \xED[\x80-\x9F][\x80-\xBF]        # excluding surrogates
          |  \xF0[\x90-\xBF][\x80-\xBF]{2}     # planes 1-3
          | [\xF1-\xF3][\x80-\xBF]{3}          # planes 4-15
          |  \xF4[\x80-\x8F][\x80-\xBF]{2}     # plane 16
        )*$/x
 /Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/1.9.0/rexml/text.rb:142:
 premature end of char-class:
 /[\x00-\x7F]|[\x80-\xBF][\xC0-\xF0]*|[\xC0-\xF0]/
 attribute.rb:2:in `<main>': compile error (SyntaxError)
         from element.rb:3:in `<main>'
         from document.rb:1:in `<main>'
         from rb_main.rb:in `<main>'

 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/546>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list