diff options
author | wm4 <wm4@nowhere> | 2015-08-01 23:25:50 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-08-01 23:49:37 +0200 |
commit | 11f2be2bcc264aa4f24cdad036231e34d09f5630 (patch) | |
tree | 6e0b8a258cf6d8de882bd21d7d61a644ca379dd9 /sub/find_subfiles.c | |
parent | 17fe9d7c0d33ead1d13535952d8491aaf68d3c46 (diff) | |
download | mpv-11f2be2bcc264aa4f24cdad036231e34d09f5630.tar.bz2 mpv-11f2be2bcc264aa4f24cdad036231e34d09f5630.tar.xz |
charset_conv: make it possible to return an allocated string as guess
uchardet is written in C++, and thus doesn't appreciate the value of
using static strings, and internally stores the guessed charset as
allocated std::string. Add a minimal hack to deal with this. (I don't
appreciate that the code is potentially harder to understand by
returning either a static or allocated string, but I do appreciate for
not having to litter the existing code with strdups.)
Diffstat (limited to 'sub/find_subfiles.c')
0 files changed, 0 insertions, 0 deletions