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...@mail.gmail.com Backpatch-through: 11 Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/106a1bf824ce80c434dbd4cee94e8b66e07e1231 Modified Files -------------- src/backend/regex/regc_lex.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-)
