Since we assume that GDB output is UTF-8, make sure it is so on all platforms.

Otherwise it'll choose some "appropriate" platform-specific default (e.g. CP1252 on Windows).
This commit is contained in:
Vadim Chugunov 2013-08-26 01:15:57 -07:00
parent 24bde7ff5a
commit a903f741b0

View File

@ -282,7 +282,9 @@ fn run_debuginfo_test(config: &config, props: &TestProps, testfile: &Path) {
}
// write debugger script
let script_str = cmds.append("\nquit\n");
let script_str = [~"set charset UTF-8",
cmds,
~"quit\n"].connect("\n");
debug!("script_str = %s", script_str);
dump_output_file(config, testfile, script_str, "debugger.script");