Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo build doesn't work when in a directory with a non-UTF8 path #76

Closed
huonw opened this issue Jun 27, 2014 · 2 comments
Closed

cargo build doesn't work when in a directory with a non-UTF8 path #76

huonw opened this issue Jun 27, 2014 · 2 comments

Comments

@huonw
Copy link
Member

huonw commented Jun 27, 2014

[package]

name = "test"
version = "0.0.0"
authors = []

[[lib]]

name = "test"

with src/test.rs empty.

If this is in a valid UTF-8 directory, then cargo build works flawlessly. If this is in an invalid UTF-8 directory (creatable by, e.g., mkdir $(echo -e '\xff') in Bash), then cargo build is rather upset:

  Compiling test v0.0.0 (file:/home/huon/projects/test-rust/�)
error: could not write output: Error opening output file '/home/huon/projects/test-rust/�/target/test.o': No such file or directory
Could not execute process `rustc src/test.rs --crate-type lib --out-dir /home/huon/projects/test-rust/�/target -L /home/huon/projects/test-rust/�/target -L /home/huon/projects/test-rust/�/target/deps` (status=101)
@SimonSapin
Copy link
Contributor

This looks like something using Path::display for something other than displaying.

@alexcrichton
Copy link
Member

Closing, #238 handles the cargo side of things and rust-lang/rust#15890 handles what should be the rest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants