# HG changeset patch # User reimar # Date 1267367264 0 # Node ID 69bbd8b9fd0954900aa14aad469a11a4c1a5ce8f # Parent 4e654b2e451792423d60911ce120de9092dd067d sub_utf8 is handled as a value, not flags everywhere else, so change sub_utf8 & 2 to == 2. diff -r 4e654b2e4517 -r 69bbd8b9fd09 subreader.c --- a/subreader.c Sun Feb 28 14:22:44 2010 +0000 +++ b/subreader.c Sun Feb 28 14:27:44 2010 +0000 @@ -1433,7 +1433,7 @@ sub=srp->read(fd,sub); if(!sub) break; // EOF #ifdef CONFIG_ICONV - if ((sub!=ERR) && (sub_utf8 & 2)) sub=subcp_recode(sub); + if ((sub!=ERR) && sub_utf8 == 2) sub=subcp_recode(sub); #endif #ifdef CONFIG_FRIBIDI if (sub!=ERR) sub=sub_fribidi(sub,sub_utf8,0);