Also, about end-of-line: Gedit says this file has no final "\n".
But the tests where this is compared thinks it has a newline at end of file.
(or maybe I just don't know how endofline works?)