summaryrefslogtreecommitdiffstats
path: root/src/basic/utf8.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-03-22 04:34:13 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-03-22 23:51:59 +0100
commit9dd7ea9a7d5053be0c2a744b1b57a7b1dc203f0e (patch)
tree0a1d04e9c7071b1552fe26cee6454386bfaa4e8c /src/basic/utf8.h
parentMerge pull request #2878 from martinpitt/master (diff)
downloadsystemd-9dd7ea9a7d5053be0c2a744b1b57a7b1dc203f0e.tar.xz
systemd-9dd7ea9a7d5053be0c2a744b1b57a7b1dc203f0e.zip
Ignore BOM in config files
Fixes #2823. Also remove unnecessary feof check.
Diffstat (limited to 'src/basic/utf8.h')
-rw-r--r--src/basic/utf8.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/utf8.h b/src/basic/utf8.h
index 12c272d66e..f9b9c9468b 100644
--- a/src/basic/utf8.h
+++ b/src/basic/utf8.h
@@ -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);