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

Fail to link if there is special chars in the project path #90

Closed
TechMagister opened this issue Dec 31, 2015 · 3 comments
Closed

Fail to link if there is special chars in the project path #90

TechMagister opened this issue Dec 31, 2015 · 3 comments

Comments

@TechMagister
Copy link

If there is a special character in the path of the project ( like é,è ), libgit2-sys fail to link with the program. ex : /home/arnaud/workspace/Dépots/laughing-journey

It took me time to find why it suddenly stop building after adding git2 dependency.

To reproduce:

mkdir yès
cd yès
cargo new myproject
cd myproject
echo "git2 = \"0.3.3\" " >> Cargo.toml
cargo build

Here the output: error.txt

@alexcrichton
Copy link
Member

I seem to be able to reproduce the fact that an error happens, but not quite the exact error which is happening. Can you rerun with RUST_BACKTRACE=1 and gist the result?

@TechMagister
Copy link
Author

I hope this will help you:

cd yès
cargo new myproject
cd myproject
echo "git2 = \"0.3.3\" " >> Cargo.toml
RUST_BACKTRACE=1 cargo build

gist : https://gist.github.com/FerarDuanSednan/08bfc7cfe0c40a949bb5

@alexcrichton
Copy link
Member

Ah right, so I tracked this down and found out this was b/c pkg-config printing some weird characters, so I believe that alexcrichton@4d2b771 should fix this. Thanks for the report!

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

1 participant