From: jen Marsh Date: 2013-05-18T12:50:01+09:00 Subject: Ruby 'gets' truncates input to 256 characters (Windows) Is this a 'feature' of Ruby on windows? I am trying to enter a long string (> 256 characters but generally < 512) in Ruby with: puts "Enter long string" ilogo = gets.chomp puts ilogo For some reason, it always truncates the input to keep only 256 characters (before chomp). I verified that Ruby accepts longer strings, and that Windows 7 command line console also accepts strings > 256 chars. I have seen that people don't have the issue with MacOS, but others do have it with Windows XP. I am running Win7. I can't find any mention of the gets method having that type of limitation, but I am surely missing something. Could that be just a 'gets' limitation for Ruby running on Windows? -- Posted via http://www.ruby-forum.com/.