1.8.1 YAML emit bug? (Win32)

A

Austin Ziegler

Apologies if this has been noted before; I am currently using the 1.8.1
installer released on 2004.04.26, so this may well be fixed.

irb(main):004:0> a = ""; (0...8191).each { |i| a << "%c" % [65 + i % 25]
}; puts a.size; a.to_yaml; nil
8191
=> nil
irb(main):005:0> a = ""; (0...8192).each { |i| a << "%c" % [65 + i % 25]
}; puts a.size; a.to_yaml; nil
8192

The former line works. The latter locks up tighter than the Bush
Administration's lips to the American public. I think that if it's any
larger than 8192, it causes an access violation/segfault.

-austin
 
W

why the lucky stiff

Austin said:
irb(main):005:0> a = ""; (0...8192).each { |i| a << "%c" % [65 + i % 25]
}; puts a.size; a.to_yaml; nil
8192
Yeah, this is healed in the latest. Ran tests up to (0..8191313) and
still worked good. Anyone who can test a stable snapshot on Windows?

_why
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top