tests/lib1/no-trailing-newline.pc

Branch


Log

Author Commit Date CI Message
William Pitcock d67a0401 2015-07-20T03:10:27 testsuite: use /test as an explicit prefix on all tests
Jean-Sébastien Pédron bff5f15d 2014-07-31T16:15:31 Support .pc file without a trailing newline Some editors write text files without a newline character at the end of the last line. Before this change, the main loop in pkg_new_from_file() expected a newline character at the end of the line and overwrote it with a NUL character. In the case of the last line in a non-newline-terminated file, this ate the last character of that line. Now, the pkg_fgetline() function takes care of returning a line without the newline character (or the "\r\n" sequence in case of a DOS file format).