Avoid character classification in regex escape parsing.
Jeff Davis <jdavis@postgresql.org>
Avoid character classification in regex escape parsing. For regex escape sequences, just test directly for the relevant ASCII characters rather than using locale-sensitive character classification. This fixes an assertion failure when a locale considers a non-ASCII character, such as "൧", to be a digit. Reported-by: Richard Guo Discussion: https://postgr.es/m/CAMbWs49Q6UoKGeT8pBkMtJGJd+16CBFZaaWUk9Du+2ERE5g_YA@mail.gmail.com Backpatch-through: 11
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/regex/regc_lex.c | modified | +10 −3 |
Discussion
- Assert failure with ICU support 8 messages · 2023-04-19 → 2023-04-20