SIGN IN SIGN UP

[mypyc] Fix handling of invalid codepoint values in librt.strings (#21634)

`isidentifier`, `tolower` and `toupper` would terminate the process if
passed a too high Unicode codepoint value. Fix so that all the `is*`
functions return false for invalid codepoints and `tolower`/`toupper`
functions return them unchanged.

I used coding agent assist.
J
Jukka Lehtosalo committed
3179030edcee070153b29cf21e06a0966beb088c
Parent: 1b206eb
Committed by GitHub <noreply@github.com> on 6/22/2026, 6:06:50 PM