diff options
author | wm4 <wm4@nowhere> | 2013-08-15 21:42:17 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-08-15 23:40:03 +0200 |
commit | fe3c44511234e00f67f9fccef281efb95c326576 (patch) | |
tree | 085d61668e9f63fcb3d3c5b15cbef16b8878620e /compat/mangle.h | |
parent | 00f735d5cba22713ba9a377876b7cfd333c0b2b9 (diff) | |
download | mpv-fe3c44511234e00f67f9fccef281efb95c326576.tar.bz2 mpv-fe3c44511234e00f67f9fccef281efb95c326576.tar.xz |
sub: allow specifying a fallback codepage if input is not UTF-8
Normally, --subcp always forces conversion. This really always forces
conversion, even if the UTF-8 check on the input succeeds.
Extend the --subcp to allow codepages as fallback if UTF-8 doesn't
work. So, for example --subcp=utf8:cp1250 will use UTF-8 if the input
looks like UTF-8, and will fall back to use cp1250 if the UTF-8 check
fails.
I think this should actually be the default, but on the other hand,
this changes the semantics of the option, and a user would actually
expect --subcp to force conversion, rather than silently using UTF-8
if that happens to work.
Diffstat (limited to 'compat/mangle.h')
0 files changed, 0 insertions, 0 deletions