Projects

Ticket #311 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

ERB experiencing string buffer corruption of some sort

Reported by: tjw@… Owned by: lsansonetti@…
Priority: blocker Milestone: MacRuby 0.5
Component: MacRuby Keywords:
Cc:

Description

Run the attached test and it spits out stuff like:

(erb):2: syntax error, unexpected tIDENTIFIER, expecting $end ; _erbout.concat(( title ).to_s); _erbout.concat "</title>\n" (SyntaxError)

If you modify the test to use stock ruby, it works. Possibly related to  https://www.macruby.org/trac/ticket/293

Running under r2267.

Attachments

erb.zip Download (0.6 KB) - added by tjw@… 3 years ago.
example of the problem

Change History

Changed 3 years ago by tjw@…

example of the problem

Changed 2 years ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed

Looks like the problem has been fixed in trunk.

$ macruby test
result: <title>spoon!</title>

$ ruby19 test
result: <title>spoon!</title>

Note: See TracTickets for help on using tickets.