Plug non-ascii arguments correctly into command templates.
commit416b9f996234ec8044e1e4041fdbd1f3ddeb986a
authorJohannes Sixt <j6t@kdbg.org>
Mon, 11 Mar 2013 19:46:15 +0000 (11 20:46 +0100)
committerJohannes Sixt <j6t@kdbg.org>
Mon, 11 Mar 2013 19:46:15 +0000 (11 20:46 +0100)
tree1900a3f4f593440614fe243ad376bd8d1a86872f
parent4e19e7239e12a62ae120a662134d51d3c3c88108
Plug non-ascii arguments correctly into command templates.

QString::sprintf() expects UTF-8 strings for the "%s" format, but we have
been passing a latin-1 string. This makes a difference when user-input
contains non-ascii characters, for example in an executable path name.

Noticed by Wolfgang Bauer.
kdbg/gdbdriver.cpp
kdbg/xsldbgdriver.cpp