On Tue, 25 Nov 2014, Martin Storsjö wrote:
This allows getting the normal unix semantics, where a rename
allows replacing an existing file.
Based on a suggestion by Reimar Döffinger.
---
Changed the CP_ACP fallback codepath to convert the string to
wchar_t and use MoveFileExW, since MoveFileExA isn't available
on Windows Phone.
---
libavformat/os_support.h | 25 +++++++++++++++++++++++--
libavutil/wchar_filename.h | 12 +++++++++---
2 files changed, 32 insertions(+), 5 deletions(-)
j-b pointed out that MultiByteToWideChar(CP_ACP) causes an access
violation on WinRT (and Windows Phone), so this patch still requires a bit
more work...
We probably could skip the ACP fallback case for the rename function as
well. It'd only hit users directly using libavformat (instead of via
avconv.exe) and not providing filenames in the right (utf-8) format. Or
skip it if targeting windows "store apps" and windows phone.
// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel