Title: Fix title() and capitalize() by joshuamegnauth54 · Pull Request #7717 · RustPython/RustPython · GitHub
Open Graph Title: Fix title() and capitalize() by joshuamegnauth54 · Pull Request #7717 · RustPython/RustPython
X Title: Fix title() and capitalize() by joshuamegnauth54 · Pull Request #7717 · RustPython/RustPython
Description: I fixed title() and capitalize() as well as enabled their respective tests. I fixed both by following CPython's logic closely, including implementing a workaround for sigma. Besides that, I removed an unneeded dependency (unicode-casing) by using icu4x instead. This helps with consistency and removes outdated Unicode tables from the final RustPython binary. Summary by CodeRabbit Bug Fixes Improved Unicode string case behavior (capitalize, title, istitle), including correct handling of Greek sigma, Turkish dotted I, German ß, combining marks, emoji-leading text, and preservation of invalid bytes. Chores Switched to ICU-based Unicode libraries and added a formatting/helper dependency. Refactor Reworked titlecasing and ASCII-bytes logic for clarity and reuse. Tests Enabled and expanded Unicode title/capitalize tests covering multiple edge cases.
Open Graph Description: I fixed title() and capitalize() as well as enabled their respective tests. I fixed both by following CPython's logic closely, including implementing a workaround for sigma. Besides that, I rem...
X Description: I fixed title() and capitalize() as well as enabled their respective tests. I fixed both by following CPython's logic closely, including implementing a workaround for sigma. Besides that, I...
Opengraph URL: https://github.com/RustPython/RustPython/pull/7717
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6408b2db-28fd-0dd5-bb6d-8577452f2ea1 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E9A2:3A52DB:6A0B8E:907D5E:6A6004DE |
| html-safe-nonce | fa9a2d961a8f87c553776a12d077029b248a9f5d8c565edaad89918a8041ba1f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOUEyOjNBNTJEQjo2QTBCOEU6OTA3RDVFOjZBNjAwNERFIiwidmlzaXRvcl9pZCI6IjQxMjc4NzI5OTUyOTMxMzYwOTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c1aad2ed2665812b829f3cbe9e3d24b2a4d223d03d828c917536c738050574af |
| hovercard-subject-tag | pull_request:3597641810 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/7717/files |
| twitter:image | https://avatars.githubusercontent.com/u/48846352?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/48846352?s=400&v=4 |
| og:image:alt | I fixed title() and capitalize() as well as enabled their respective tests. I fixed both by following CPython's logic closely, including implementing a workaround for sigma. Besides that, I rem... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5789899e92b20db289de946d86eb20bf5c9626276695d68f58a8c47cdda699b7 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6ddc048ddf80664b9b33547b619db10313c482f1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width