forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit489be9c
committed
Don't downcase non-ascii identifier chars in multi-byte encodings.
Long-standing code has called tolower() on identifier character byteswith the high bit set. This is clearly an error and produces junk outputwhen the encoding is multi-byte. This patch therefore restricts thisactivity to cases where there is a character with the high bit set ANDthe encoding is single-byte.There have been numerous gripes about this, most recently from MartinSchäfer.Backpatch to all live releases.1 parent88ce29a commit489be9c
1 file changed
+5
-3
lines changedLines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
130 | 130 |
| |
131 | 131 |
| |
132 | 132 |
| |
| 133 | + | |
133 | 134 |
| |
134 | 135 |
| |
| 136 | + | |
135 | 137 |
| |
136 | 138 |
| |
137 | 139 |
| |
138 | 140 |
| |
139 | 141 |
| |
140 | 142 |
| |
141 | 143 |
| |
142 |
| - | |
143 |
| - | |
| 144 | + | |
| 145 | + | |
144 | 146 |
| |
145 | 147 |
| |
146 | 148 |
| |
147 | 149 |
| |
148 | 150 |
| |
149 | 151 |
| |
150 | 152 |
| |
151 |
| - | |
| 153 | + | |
152 | 154 |
| |
153 | 155 |
| |
154 | 156 |
| |
|
0 commit comments
Comments
(0)