mirror of https://github.com/mpv-player/mpv
charset_conv: support minimum compatibility to utf8:... syntax
Because it's the most commonly used one, and trivial to support.
This commit is contained in:
parent
73858bb0cc
commit
310671e91a
|
@ -106,8 +106,12 @@ const char *mp_charset_guess(void *talloc_ctx, struct mp_log *log, bstr buf,
|
|||
{
|
||||
mp_err(log, "This syntax for the --sub-codepage option was deprecated "
|
||||
"and has been removed.\n");
|
||||
if (strncasecmp(user_cp, "utf8:", 5) == 0) {
|
||||
user_cp = user_cp + 5;
|
||||
} else {
|
||||
user_cp = "";
|
||||
}
|
||||
}
|
||||
|
||||
if (user_cp[0] == '+') {
|
||||
mp_verbose(log, "Forcing charset '%s'.\n", user_cp + 1);
|
||||
|
|
Loading…
Reference in New Issue