From a903f741b076bc8031d7789b83efe789d8ca65ae Mon Sep 17 00:00:00 2001 From: Vadim Chugunov Date: Mon, 26 Aug 2013 01:15:57 -0700 Subject: [PATCH] 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). --- src/compiletest/runtest.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs index a31efe26c1a..05fd621e597 100644 --- a/src/compiletest/runtest.rs +++ b/src/compiletest/runtest.rs @@ -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");