aboutsummaryrefslogtreecommitdiffhomepage
path: root/input
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2014-07-12 21:25:32 +0200
committerGravatar wm4 <wm4@nowhere>2014-07-12 21:25:32 +0200
commita09329bcf7e30fb73cc082d4099cdc53b3661131 (patch)
treeffa4aea4df1a2657affa3649ce1d891fb2bed473 /input
parentfed69f3637965ea92c23b5e41e56bc9dae37efb9 (diff)
input: skip BOM in input.conf
Diffstat (limited to 'input')
-rw-r--r--input/input.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/input/input.c b/input/input.c
index ebcbaf208f..9f2567d478 100644
--- a/input/input.c
+++ b/input/input.c
@@ -1450,6 +1450,7 @@ static int parse_config_file(struct input_ctx *ictx, char *file, bool warn)
MP_ERR(ictx, "Can't open input config file %s.\n", file);
goto done;
}
+ stream_skip_bom(s);
bstr data = stream_read_complete(s, tmp, 1000000);
if (data.start) {
MP_VERBOSE(ictx, "Parsing input config file %s\n", file);