comparison subreader.c @ 12493:6b11ffd069cf

1e6l
author henry
date Fri, 21 May 2004 16:02:09 +0000
parents 092875b4fea7
children 9a495bdc3a1e
comparison
equal deleted inserted replaced
12492:4b8417674f1c 12493:6b11ffd069cf
1043 1043
1044 #ifdef HAVE_ENCA 1044 #ifdef HAVE_ENCA
1045 void subcp_open_noenca () 1045 void subcp_open_noenca ()
1046 { 1046 {
1047 char enca_lang[100], enca_fallback[100]; 1047 char enca_lang[100], enca_fallback[100];
1048 if (sscanf(sub_cp, "enca:%2s:%s", enca_lang, enca_fallback) == 2 1048 if (sub_cp) {
1049 || sscanf(sub_cp, "ENCA:%2s:%s", enca_lang, enca_fallback) == 2) { 1049 if (sscanf(sub_cp, "enca:%2s:%s", enca_lang, enca_fallback) == 2
1050 subcp_open(enca_fallback); 1050 || sscanf(sub_cp, "ENCA:%2s:%s", enca_lang, enca_fallback) == 2) {
1051 } else { 1051 subcp_open(enca_fallback);
1052 subcp_open(sub_cp); 1052 } else {
1053 subcp_open(sub_cp);
1054 }
1053 } 1055 }
1054 } 1056 }
1055 #else 1057 #else
1056 void subcp_open_noenca () 1058 void subcp_open_noenca ()
1057 { 1059 {