summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorJonathon Reinhart2018-08-02 01:10:59 +0200
committerMichael Roth2018-10-30 22:48:49 +0100
commitbad0227d3ac4f706673df9690b77840ed89dec40 (patch)
tree2bb54567750727f580b29b8f3d94fbe27e0a52fe /include/exec
parentMerge remote-tracking branch 'remotes/vivier2/tags/qemu-trivial-for-3.1-pull-... (diff)
downloadqemu-bad0227d3ac4f706673df9690b77840ed89dec40.tar.gz
qemu-bad0227d3ac4f706673df9690b77840ed89dec40.tar.xz
qemu-bad0227d3ac4f706673df9690b77840ed89dec40.zip
qga: Support Unicode paths in guest-file-open on win32
Currently, the win32 port of QEMU Guest Agent does not properly handle Unicode paths. The JSON decoder produces a valid UTF-8 path string, but this is passed directly to CreateFileA, which is expecting an ANSI string and not UTF-8. This leads to mangled filenames. This patch follows the example of qmp_guest_set_user_password() and uses g_utf8_to_utf16() to convert the string to UTF-16 and calls CreateFileW() explicitly. Signed-off-by: Jonathon Reinhart <jreinhart@cc-sw.com> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions