Ignore BOM in config files

Fixes #2823.

Also remove unnecessary feof check.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2016-03-22 18:51:59 -04:00
parent e31512b1c9
commit 9dd7ea9a7d
2 changed files with 10 additions and 4 deletions
+1
View File
@@ -28,6 +28,7 @@
#include "missing.h"
#define UTF8_REPLACEMENT_CHARACTER "\xef\xbf\xbd"
#define UTF8_BYTE_ORDER_MARK "\xef\xbb\xbf"
bool unichar_is_valid(char32_t c);