corrected utf8 files autoselection

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10930 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
atlka 2003-09-22 13:44:36 +00:00
parent e27e245ffe
commit 74b135fd61
1 changed files with 2 additions and 1 deletions

View File

@ -1762,8 +1762,9 @@ char** sub_filenames(char* path, char *fname)
if (prio) { if (prio) {
prio += prio; prio += prio;
#ifdef USE_ICONV #ifdef USE_ICONV
if (sub_cp) // prefer UTF-8 coded if (sub_utf8 || (i<3)){ // prefer UTF-8 coded
prio++; prio++;
}
#endif #endif
sprintf(tmpresult, "%s%s", j == 0 ? f_dir : path, de->d_name); sprintf(tmpresult, "%s%s", j == 0 ? f_dir : path, de->d_name);
// fprintf(stderr, "%s priority %d\n", tmpresult, prio); // fprintf(stderr, "%s priority %d\n", tmpresult, prio);