ERB can't handle more than around 63800 chars in template-in/output on 
windows-box
----------------------------------------------------------------------------------

                 Key: JRUBY-1252
                 URL: http://jira.codehaus.org/browse/JRUBY-1252
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.0.0
         Environment: Windows XP 
ruby 1.8.5 (2007-06-07 rev 3841) [x86-jruby1.0] running on windows with cygwin
            Reporter: Thorsten Sandfuchs


Hi,
ERB-Templating on windows seems to have a serious issue with string-sizes.
(above a certein char-size the template just got "swallowed" and no 
error/string is returned)
Easy testcase:

irb(main):072:0> @a = Array.new
 => []
 irb(main):073:0> [EMAIL PROTECTED] << "a"}
 => 63900
 irb(main):074:0> ERB.new(@a.join("")).result
 irb(main):075:0>

so there is no output! Buffer overflow in ERB?

 irb(main):079:0* @a = Array.new
 => []
 irb(main):080:0> [EMAIL PROTECTED] << "a"}
 => 63800
 irb(main):081:0> ERB.new(@a.join("")).result
 => "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.....
 ....................

hmm with 63800 there is output...

on a linux box, this code actually works.

hope someone could fix this for windows.

thx,
                                /fux

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to