diff options
author | wm4 <wm4@nowhere> | 2014-07-12 21:25:32 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-07-12 21:25:32 +0200 |
commit | a09329bcf7e30fb73cc082d4099cdc53b3661131 (patch) | |
tree | ffa4aea4df1a2657affa3649ce1d891fb2bed473 /input | |
parent | fed69f3637965ea92c23b5e41e56bc9dae37efb9 (diff) |
input: skip BOM in input.conf
Diffstat (limited to 'input')
-rw-r--r-- | input/input.c | 1 |
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); |