-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-91922: Fix sqlite connection on nonstardard locales and paths #92926
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
gh-91922: Fix sqlite connection on nonstardard locales and paths #92926
Conversation
* Fix function sqlite.connect() and the sqlite.Connection constructor on non-UTF-8 locales. * Fix support of bytes paths non-decodable with the current FS encoding.
Thanks, I'll review it tomorrow! From a quick glance, it seems like the main change is the |
No, the main change is calling
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good; thanks a lot!
I left some minor comments.
🤖 New build scheduled with the buildbot fleet by @serhiy-storchaka for commit 8f58dcf 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
The tree buildbot failures so far all seem unrelated to this PR.
|
I ran tests on buildbots because the issue is locale-specific. |
BTW, if you want me to land this, add me as assigned. |
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
GH-93006 is a backport of this pull request to the 3.11 branch. |
pythonGH-92926) (cherry picked from commit d853758) Co-authored-by: Serhiy Storchaka <[email protected]>
…92926) (cherry picked from commit d853758) Co-authored-by: Serhiy Storchaka <[email protected]>
on non-UTF-8 locales.
Closes #91922