about summary refs log tree commit diff
path: root/src/libnative
diff options
context:
space:
mode:
authorPhil Ruffwind <rf@rufflewind.com>2014-05-07 19:26:16 -0400
committerPhil Ruffwind <rf@rufflewind.com>2014-05-13 17:19:01 -0400
commitb8e3f3a41715a7de7e32eb32456aa25132c8ff46 (patch)
tree2b725235720e0b06371527b4fa44827ac419f0fd /src/libnative
parentd9eca56c065d27498a0e5fbd20ad114063c96281 (diff)
downloadrust-b8e3f3a41715a7de7e32eb32456aa25132c8ff46.tar.gz
rust-b8e3f3a41715a7de7e32eb32456aa25132c8ff46.zip
Test Unicode support of process spawning
Added a run-pass test to ensure that processes can be correctly spawned
using non-ASCII arguments, working directory, and environment variables.
It also tests Unicode support of os::env_as_bytes.

An additional assertion was added to the test for make_command_line to
verify it handles Unicode correctly.
Diffstat (limited to 'src/libnative')
-rw-r--r--src/libnative/io/process.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libnative/io/process.rs b/src/libnative/io/process.rs
index be67d0a3fb4..14ea1f12a5c 100644
--- a/src/libnative/io/process.rs
+++ b/src/libnative/io/process.rs
@@ -864,5 +864,9 @@ mod tests {
             make_command_line("echo", ["a b c".to_owned()]),
             "echo \"a b c\"".to_owned()
         );
+        assert_eq!(
+            make_command_line("\u03c0\u042f\u97f3\u00e6\u221e", []),
+            "\u03c0\u042f\u97f3\u00e6\u221e".to_owned()
+        );
     }
 }