comparison subreader.c @ 10929:fc2cfb994784

corrected utf8 files autoselection
author atlka
date Mon, 22 Sep 2003 13:44:36 +0000
parents c36db88bfbc4
children 80276a5ccb34
comparison
equal deleted inserted replaced
10928:f2313bd91594 10929:fc2cfb994784
1760 } 1760 }
1761 1761
1762 if (prio) { 1762 if (prio) {
1763 prio += prio; 1763 prio += prio;
1764 #ifdef USE_ICONV 1764 #ifdef USE_ICONV
1765 if (sub_cp) // prefer UTF-8 coded 1765 if (sub_utf8 || (i<3)){ // prefer UTF-8 coded
1766 prio++; 1766 prio++;
1767 }
1767 #endif 1768 #endif
1768 sprintf(tmpresult, "%s%s", j == 0 ? f_dir : path, de->d_name); 1769 sprintf(tmpresult, "%s%s", j == 0 ? f_dir : path, de->d_name);
1769 // fprintf(stderr, "%s priority %d\n", tmpresult, prio); 1770 // fprintf(stderr, "%s priority %d\n", tmpresult, prio);
1770 if ((f = fopen(tmpresult, "rt"))) { 1771 if ((f = fopen(tmpresult, "rt"))) {
1771 fclose(f); 1772 fclose(f);