From 74b135fd61e1fab2ea562ad97d4872a2e6aab397 Mon Sep 17 00:00:00 2001 From: atlka Date: Mon, 22 Sep 2003 13:44:36 +0000 Subject: [PATCH] corrected utf8 files autoselection git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10930 b3059339-0415-0410-9bf9-f77b7e298cf2 --- subreader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subreader.c b/subreader.c index d99882b078..6d30013115 100644 --- a/subreader.c +++ b/subreader.c @@ -1762,8 +1762,9 @@ char** sub_filenames(char* path, char *fname) if (prio) { prio += prio; #ifdef USE_ICONV - if (sub_cp) // prefer UTF-8 coded + if (sub_utf8 || (i<3)){ // prefer UTF-8 coded prio++; + } #endif sprintf(tmpresult, "%s%s", j == 0 ? f_dir : path, de->d_name); // fprintf(stderr, "%s priority %d\n", tmpresult, prio);