always treat .utf* files as UTF-8

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10357 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
atlka 2003-07-01 09:29:31 +00:00
parent 2611700458
commit 5f92ac1d7b
1 changed files with 0 additions and 2 deletions

View File

@ -1180,12 +1180,10 @@ sub_data* sub_read_file (char *filename, float fps) {
int l,k;
k = -1;
if ((l=strlen(filename))>4){
int k;
char *exts[] = {".utf", ".utf8", ".utf-8" };
for (k=3;--k>=0;)
if (!strcasecmp(filename+(l - strlen(exts[k])), exts[k])){
sub_utf8 = 1;
fprintf(stderr,"UTF-8 detected\n");
break;
}
}