From 3e6ed769357aa317bab5866da39cf0704e62fd5e Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 15 Aug 2013 23:13:10 +0200 Subject: sub: don't print detected charset if it's UTF-8 Too noisy. This also fixes that iconv() was called if "utf8" was used as codepage. --- mpvcore/charset_conv.h | 1 + 1 file changed, 1 insertion(+) (limited to 'mpvcore/charset_conv.h') diff --git a/mpvcore/charset_conv.h b/mpvcore/charset_conv.h index 171793ffab..0b2874f0ec 100644 --- a/mpvcore/charset_conv.h +++ b/mpvcore/charset_conv.h @@ -10,6 +10,7 @@ enum { MP_STRICT_UTF8 = 4, // don't fall back to UTF-8-BROKEN when guessing }; +bool mp_charset_is_utf8(const char *user_cp); bool mp_charset_requires_guess(const char *user_cp); const char *mp_charset_guess(bstr buf, const char *user_cp, int flags); bstr mp_charset_guess_and_conv_to_utf8(bstr buf, const char *user_cp, int flags); -- cgit v1.2.3