Uh oh!
There was an error while loading. Please reload this page.
[WIP] Fix UTF-8 handling - #76
Conversation
AndWac
left a comment
There was a problem hiding this comment.
The changes look good so far. What makes you sure that you didn't miss an open() call? There are lots of other places where open() is being called...
pyhalov
commented
Mar 8, 2020
|
pyhalov
commented
Mar 8, 2020
@citrus-it What do you think about utf-8 test? The only issue I see is that now you should run test suite with UTF-8 locale |
pyhalov
commented
Mar 10, 2020
@citrus-it It's not enough. |
pyhalov
commented
Mar 10, 2020
It's still not complete, now it dies without exception... |
pyhalov
commented
Mar 10, 2020
The same issue - dies on writing to /var/pkg/cache/publisher/userland/pkg/crypto%2Fca-certificates/1.0%2C5.11-2019.0.0.7%3A20200310T174048Z/manifest.file.uosjwiqq |
pyhalov
commented
Mar 10, 2020
Now more issues: |
pyhalov
commented
Mar 10, 2020
And now we have to fix open() all over src/modules/client/image.py... |
pyhalov
commented
Mar 11, 2020
Now we can get another error: |
Toasterson
commented
Nov 3, 2021
pyhalov
commented
Nov 3, 2021
Not sure. What happens if someone launches IPS with 'C' locale? Can moving IPS to recent python (>=3.7) help with the issue? |
Toasterson
commented
Nov 3, 2021
No we needed to remove C locale and switch to C.UTF-8 one should not call IPS with just the C locale. We could make a patch to the python source to fix the if case that checks if the string contains .UTF-8 in locale and simply tell it to assume UTF-8 aswell in those cases. |
No description provided.