Marcelo Cavaco wrote: > my version is 1.8.6 OK, thanks. > and... sorry... i dont undertand very well... The question I was raising was: you said that your code fails when a line contains a non-ASCII character, but then you said that it fails on line 2 of the following input: 1 = test 2 = test * number 2 3 = another test but that's just regular ASCII. So does it fail with both? Anyway, the best way to get help is for you to make a small, completely standalone test program that demonstrates the issue - something which other people can run. Then they can hack at it to uncover where the problem lies. > any code sugestion? You could insert those STDERR.puts that I showed you into your code, run it again, watch it fail. Then you have some more info to work on. I don't believe your assertion that bits of your code are being silently skipped. I think something else is happening. I suspect the problem is to do with the bits of code that you *haven't* posted. Hence the importance of making a complete runnable program that demonstrates the issue. -- Posted via http://www.ruby-forum.com/.