pgsql: Avoid character classification in regex escape parsing.

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема pgsql: Avoid character classification in regex escape parsing.
Дата
Msg-id E1ppsjG-004B5M-Qv@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c04c6c5d6f5f213f217f1e356bf1c2d8b4e255a2

Modified Files
--------------
src/backend/regex/regc_lex.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Daniel Gustafsson
Дата:
Сообщение: pgsql: Reorder connection markers in loadbalance tests
Следующее
От: Jeff Davis
Дата:
Сообщение: pgsql: Avoid character classification in regex escape parsing.