-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Review of (explicit) encoding for files being created in text mode #1087
Comments
@sdispater PR #1088 shall resolve this issue. I did the changes against Automated tests are passing. If you accept it, propose, who and how shall manage getting these changes into |
For Windows users (using ubuntu wsl too), is there any workaround ? Or do we have to wait for a new release ? I think it's a great flaw for developers working on Windows (corporate company use to work on Windows). |
@saidbouras did you try the latest poetry version? According to https://github.com/sdispater/poetry/blob/master/CHANGELOG.md version 0.12.17 shall include fix to this issue. In fact, I will close the issue as I consider it resolved. |
@vlcinsky thanks for your fast response. |
@saidbouras the message could be related to printing (e.g. UTF-8 based) text to console, which has problems to handle that. Could you provide more details? Was there any stack trace around? |
Sorry, I am beginning in python in general, but I investigated a bit and it seems that it's related to a dependency : Thanks ! EDIT : below the trace.
|
Thanks @saidbouras According to provided stacktrace there seem to be a problem to install sasl in general. This issue is very likely not related to the issue of encoding. I would propose:
Good luck in world of Python - it is amazing one. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Resolving issue #1027 by PR #1085 we have found a pattern, which might cause
poetry
to fail on systems, which are not using default utf-8 encoding.The pattern is opening files for writing in text mode without explicit encoding.
Possibly correct default encoding
Some files are written and used on the same system, thus shall be fine using their own default encoding for writing and reading the content.
Here are the candidates:
Files which shall use explicit encoding
Some files shall have specific encoding by default. Using default encoding is probably an error.
Candidates in
get-poetry
Candidates in core code:
Candidates in test suite:
Next actions
get-poetry.py
shall really rely on default system encodingmaster
(intended for soon release as 0.12.x)develop
branchThe text was updated successfully, but these errors were encountered: