-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Fix GSO values when writing latin-1 strLs #24337
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
BUG: Fix GSO values when writing latin-1 strLs #24337
Conversation
Hello @bashtage! Thanks for submitting the PR.
|
The size calculation of the string is incorrect when writing characters that have a different encoding in latin-1 and utf-8. The utf-8 size needs to be written in stead of the latin-1 size.
2b5dc0a
to
280f48b
Compare
lgtm. ping on green. |
Codecov Report
@@ Coverage Diff @@
## master #24337 +/- ##
=======================================
Coverage 92.28% 92.28%
=======================================
Files 162 162
Lines 51833 51833
=======================================
Hits 47833 47833
Misses 4000 4000
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #24337 +/- ##
=======================================
Coverage 92.28% 92.28%
=======================================
Files 162 162
Lines 51833 51833
=======================================
Hits 47833 47833
Misses 4000 4000
Continue to review full report at Codecov.
|
thanks @bashtage |
The size calculation of the string is incorrect when writing characters that have a different encoding in latin-1 and utf-8. The utf-8 size needs to be written in stead of the latin-1 size.
The size calculation of the string is incorrect when writing characters that have a different encoding in latin-1 and utf-8. The utf-8 size needs to be written in stead of the latin-1 size.
The size calculation of the string is incorrect when writing characters that have a different encoding in latin-1 and utf-8. The utf-8 size needs to be written in stead of the latin-1 size.
The size calculation of the string is incorrect when writing characters
that have a different encoding in latin-1 and utf-8. The utf-8 size
needs to be written instead of the latin-1 size.
git diff upstream/master -u -- "*.py" | flake8 --diff