-
Notifications
You must be signed in to change notification settings - Fork 17
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
Update/Fixup string encoding to for Python3 and fix UTF-8 for Python2 too #28
Update/Fixup string encoding to for Python3 and fix UTF-8 for Python2 too #28
Commits on Dec 7, 2023
-
'unicode' is not available in python3, so remove the use of it. And for python3 'bytes' string might need to be converted to a regular string Signed-off-by: Qin Zhang (张琴) <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 58ba0d1 - Browse repository at this point
Copy the full SHA 58ba0d1View commit details -
Update commit "Remove the use of 'unicode'" to unbreak Python2
Signed-off-by: Bernhard Kaindl <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 05b27be - Browse repository at this point
Copy the full SHA 05b27beView commit details -
Py3-only: Change str encoding from Python2 to only support Python3
Note by Bernhard: As per the agreement with Andrew in xapi-project#18, we shall keep master py2-compatible and py3-only changes go to a py3 branch: Andrew wrote: > However, master needs to remain atomically py2 or py3 compatible, > and not a mix of fixes which leaves it broken in both. [...] > please keep all commits which break compatibility with py2 in a > separate single PR so it can be merged all in one go. > The final commit on the py3 branch should [...] Reference: xapi-project#18 (comment) Therefore, I'll squash this commit with the next commit for fixing it up keep master py2-compatible, at least until all py3 checks and a complete manual test was done by QA. Original commit message by Qin Zhang (张琴): Remove the use of 'encode' as it's used to turn a Unicode string into a regular string in Python2 Final Remarks by Bernhard, for completeleness: - This commit also adds conversion from curses input bytes to str. - Rebased to apply on the current master branch. Co-authored-by: Bernhard Kaindl <[email protected]> Signed-off-by: Qin Zhang (张琴) <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d15d32b - Browse repository at this point
Copy the full SHA d15d32bView commit details -
Update commit Py3-only: Change str encoding to unbreak Python2
Signed-off-by: Bernhard Kaindl <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0e456b0 - Browse repository at this point
Copy the full SHA 0e456b0View commit details -
Remove 'unicode-builtin' from the pylint --py3k TODO list
Signed-off-by: Bernhard Kaindl <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4943f34 - Browse repository at this point
Copy the full SHA 4943f34View commit details
Commits on Dec 8, 2023
-
Skip putting Terminals into ISO-8859-1 mode, fixes UTF-8 with Python2
Signed-off-by: Bernhard Kaindl <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 130b8d2 - Browse repository at this point
Copy the full SHA 130b8d2View commit details -
Setup the terminal and convert to/from ISO-8859-1 if setup by the user
Signed-off-by: Bernhard Kaindl <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6074a85 - Browse repository at this point
Copy the full SHA 6074a85View commit details -
Add testcase for convert_anything_to_str()
Signed-off-by: Bernhard Kaindl <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0496a3b - Browse repository at this point
Copy the full SHA 0496a3bView commit details