forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc04c6c5
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 parenta23ab2e commitc04c6c5
1 file changed
+10
-3
lines changedLines changed: 10 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
613 | 613 |
| |
614 | 614 |
| |
615 | 615 |
| |
616 |
| - | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
617 | 621 |
| |
618 | 622 |
| |
619 | 623 |
| |
| |||
755 | 759 |
| |
756 | 760 |
| |
757 | 761 |
| |
758 |
| - | |
759 |
| - | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
760 | 767 |
| |
761 | 768 |
| |
762 | 769 |
| |
|
0 commit comments
Comments
(0)