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

utilize chardet and bs4 to guess file encoding #1641

Merged
merged 2 commits into from Jan 10, 2017
Merged

Conversation

msarahan
Copy link
Contributor

@msarahan msarahan commented Jan 10, 2017

fixes #1632

Chardet enhances bs4. It is not directly imported.

Not sure if there's anywhere else that also needs this encoding guessing. @jakirkham if you are aware of other recipes that are broken with encoding errors, please let me know.

@tarcisiofischer this works, sort of. I can build the package, but the tests fail with some weird characters:

�[91mError: run waf-light from a folder containing waflib�[0m

Not sure if that's related, or just an artifact. Sometimes that stuff shows up with bash involved.

@jakirkham
Copy link
Member

The solution looks nice. Thanks for digging into this one.

This is the first case, at least that I can recall, of having encoding issues when building a recipe. Certainly will let you know if others crop up.

I think the weird characters are supposed to specify terminal colors FYI. So don't think encoding is the issue in that case, but something else.

@msarahan msarahan merged commit 1cc8627 into conda:master Jan 10, 2017
@msarahan msarahan deleted the chardet branch January 10, 2017 23:58
@github-actions
Copy link

github-actions bot commented May 6, 2022

Hi there, thank you for your contribution!

This pull request has been automatically locked because it has not had recent activity after being closed.

Please open a new issue or pull request if needed.

Thanks!

@github-actions github-actions bot added the locked [bot] locked due to inactivity label May 6, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Encoding issues on Windows build in the fix_staged_scripts step
2 participants