forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5bcb15b
committed
Avoid character classification in regex escape parsing.
For regex escape sequences, just test directly for the relevant ASCIIcharacters rather than using locale-sensitive characterclassification.This fixes an assertion failure when a locale considers a non-ASCIIcharacter, such as "൧", to be a digit.Reported-by: Richard GuoDiscussion:https://postgr.es/m/CAMbWs49Q6UoKGeT8pBkMtJGJd+16CBFZaaWUk9Du+2ERE5g_YA@mail.gmail.comBackpatch-through: 111 parente2e34df commit5bcb15b
1 file changed
+10
-3
lines changedLines changed: 10 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
750 | 750 |
| |
751 | 751 |
| |
752 | 752 |
| |
753 |
| - | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
754 | 758 |
| |
755 | 759 |
| |
756 | 760 |
| |
| |||
892 | 896 |
| |
893 | 897 |
| |
894 | 898 |
| |
895 |
| - | |
896 |
| - | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
897 | 904 |
| |
898 | 905 |
| |
899 | 906 |
| |
|
0 commit comments
Comments
(0)