mirror of
https://github.com/mpv-player/mpv
synced 2025-01-03 13:32:16 +00:00
config: skip BOM
This commit is contained in:
parent
5b820ff1b4
commit
fed69f3637
@ -94,6 +94,10 @@ int m_config_parse_config_file(m_config_t *config, const char *conffile,
|
||||
line_num++;
|
||||
line_pos = 0;
|
||||
|
||||
/* skip BOM */
|
||||
if (strncmp(line, "\xEF\xBB\xBF", 3) == 0)
|
||||
line_pos += 3;
|
||||
|
||||
/* skip whitespaces */
|
||||
while (mp_isspace(line[line_pos]))
|
||||
++line_pos;
|
||||
|
Loading…
Reference in New Issue
Block a user