mirror of https://github.com/mpv-player/mpv
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:
parent
2611700458
commit
5f92ac1d7b
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue