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:
@@ -282,7 +282,9 @@ fn run_debuginfo_test(config: &config, props: &TestProps, testfile: &Path) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// write debugger script
|
// 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);
|
debug!("script_str = %s", script_str);
|
||||||
dump_output_file(config, testfile, script_str, "debugger.script");
|
dump_output_file(config, testfile, script_str, "debugger.script");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user