From e7897dfb9b0e2d1f9d37ccc7df131b62694603e6 Mon Sep 17 00:00:00 2001 From: Jehan Date: Tue, 4 Aug 2015 14:06:22 +0200 Subject: charset_conv: "auto" encoding detection now uses uchardet. If mpv is not built with uchardet, "enca" is still the fallback default encoding detection. --- misc/charset_conv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'misc/charset_conv.c') 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"; -- cgit v1.2.3