Skip to content

Commit a903f74

Browse files
committed
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).
1 parent 24bde7f commit a903f74

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/compiletest/runtest.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,9 @@ fn run_debuginfo_test(config: &config, props: &TestProps, testfile: &Path) {
282282
}
283283
284284
// write debugger script
285-
let script_str = cmds.append("\nquit\n");
285+
let script_str = [~"set charset UTF-8",
286+
cmds,
287+
~"quit\n"].connect("\n");
286288
debug!("script_str = %s", script_str);
287289
dump_output_file(config, testfile, script_str, "debugger.script");
288290

0 commit comments

Comments
 (0)