]> git.proxmox.com Git - cargo.git/commit
Don't require all build script output to be utf-8
authorAlex Crichton <alex@alexcrichton.com>
Mon, 11 Apr 2016 17:06:47 +0000 (10:06 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 11 Apr 2016 17:08:14 +0000 (10:08 -0700)
commit020db0de96aa1956007c4c1571593bbf63dc2740
tree2cce6df102412f855cbb0818da5181cd671f6239
parent10ddd7d5b3080fb0fa6c720cedca64407d4ca2f9
Don't require all build script output to be utf-8

Build scripts often stream output of native build systems like cmake/make and
those aren't always guaranteed to produce utf-8 output. For example  German
MSVC cmake build has been reported to print non-utf-8 umlauts.

This commit instead only attempts to interpret each line as utf-8 rather than
the entire build script output. All non-utf-8 output is ignored.

Closes #2556
src/cargo/ops/cargo_rustc/custom_build.rs
src/cargo/util/paths.rs
tests/test_cargo_compile_custom_build.rs