about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorVadim Chugunov <vadimcn@gmail.com>2013-08-26 01:15:57 -0700
committerVadim Chugunov <vadimcn@gmail.com>2013-08-26 01:23:17 -0700
commita903f741b076bc8031d7789b83efe789d8ca65ae (patch)
tree266e15e26c4176d32548185a8c1272ba16f5f17b /src
parent24bde7ff5a414973227b27195b919ffbf3a0be7d (diff)
downloadrust-a903f741b076bc8031d7789b83efe789d8ca65ae.tar.gz
rust-a903f741b076bc8031d7789b83efe789d8ca65ae.zip
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).
Diffstat (limited to 'src')
-rw-r--r--src/compiletest/runtest.rs4
1 files changed, 3 insertions, 1 deletions
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");