diff options
author | Jehan <jehan@girinstud.io> | 2015-08-04 14:06:22 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-08-04 17:51:00 +0200 |
commit | e7897dfb9b0e2d1f9d37ccc7df131b62694603e6 (patch) | |
tree | b4aa5cc514eb745ad5393ee2918f2842e069cdce /misc/charset_conv.c | |
parent | aca591ded3f7600882b57ec4526bc49b1377f203 (diff) | |
download | mpv-e7897dfb9b0e2d1f9d37ccc7df131b62694603e6.tar.bz2 mpv-e7897dfb9b0e2d1f9d37ccc7df131b62694603e6.tar.xz |
charset_conv: "auto" encoding detection now uses uchardet.
If mpv is not built with uchardet, "enca" is still the fallback default
encoding detection.
Diffstat (limited to 'misc/charset_conv.c')
-rw-r--r-- | misc/charset_conv.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/charset_conv.c b/misc/charset_conv.c index b611538bc1..cef9c4a9e7 100644 --- a/misc/charset_conv.c +++ b/misc/charset_conv.c @@ -193,7 +193,9 @@ const char *mp_charset_guess(void *talloc_ctx, struct mp_log *log, bstr buf, bool use_auto = strcasecmp(user_cp, "auto") == 0; if (use_auto) { -#if HAVE_ENCA +#if HAVE_UCHARDET + user_cp = "uchardet"; +#elif HAVE_ENCA user_cp = "enca"; #else user_cp = "UTF-8:UTF-8-BROKEN"; |