[MPlayer-dev-eng] [PATCH] Use !isspace() to replace isalnum() in finding subtitle files

Zuxy Meng zuxy.meng at gmail.com
Thu Jan 7 05:55:26 CET 2010


Hello,

East asian countries represent their language using MBCS, and
characters in that range fail all of iscntrl(c), isblank(c),
isgraph(c), isalnum(c), isprint(c), isspace(c) and ispunct(c), so if
the filename of a video clip contains only such characters, mplayer
will load for it all subtitles under the same directory. The attached
patch fixes it by using negative match instead of the positive one.

-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: subtitle.diff
Type: application/octet-stream
Size: 775 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100107/ab7ac0ce/attachment.obj>


More information about the MPlayer-dev-eng mailing list