Commit 0a90df5
committed
Avoid global LC_CTYPE dependency in pg_locale_icu.c.
ICU still depends on libc for compatibility with certain historical
behavior for single-byte encodings. Make the dependency explicit by
holding a locale_t object when required.
We should consider a better solution in the future, such as decoding
the text to UTF-32 and using u_tolower(). That would be a behavior
change and require additional infrastructure though; so for now, just
avoid the global LC_CTYPE dependency.
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/450ceb6260cad30d7afdf155d991a9caafee7c0d.camel@j-davis.com1 parent 87b2968 commit 0a90df5
File tree
2 files changed
+44
-4
lines changed- src
- backend/utils/adt
- include/utils
2 files changed
+44
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
247 | 270 | | |
248 | 271 | | |
249 | 272 | | |
| |||
254 | 277 | | |
255 | 278 | | |
256 | 279 | | |
| 280 | + | |
257 | 281 | | |
258 | 282 | | |
259 | 283 | | |
| |||
276 | 300 | | |
277 | 301 | | |
278 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
279 | 315 | | |
280 | 316 | | |
281 | 317 | | |
| |||
306 | 342 | | |
307 | 343 | | |
308 | 344 | | |
| 345 | + | |
309 | 346 | | |
310 | 347 | | |
311 | 348 | | |
| |||
578 | 615 | | |
579 | 616 | | |
580 | 617 | | |
581 | | - | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
582 | 622 | | |
583 | | - | |
584 | 623 | | |
585 | 624 | | |
586 | 625 | | |
587 | 626 | | |
588 | 627 | | |
589 | 628 | | |
590 | | - | |
591 | | - | |
| 629 | + | |
| 630 | + | |
592 | 631 | | |
593 | 632 | | |
594 | 633 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
| |||
0 commit comments