forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3b50275
committed
Handle the "und" locale in ICU versions 54 and older.
The "und" locale is an alternative spelling of the root locale, but itwas not recognized until ICU 55. To maintain common behavior acrossall supported ICU versions, check for "und" and replace with "root"before opening.Previously, the lack of support for "und" was dangerous, becauseversions 54 and older fall back to the environment when a locale isnot found. If the user specified "und" for the language (which isexpected and documented), it could not only resolve to the wrongcollator, but it could unexpectedly change (which could lead tocorrupt indexes).This effectively reverts commitd72900b, which worked around theproblem for the built-in "unicode" collation, and is no longernecessary.Discussion:https://postgr.es/m/60da0cecfb512a78b8666b31631a636215d8ce73.camel@j-davis.comDiscussion:https://postgr.es/m/0c6fa66f2753217d2a40480a96bd2ccf023536a1.camel@j-davis.comReviewed-by: Peter Eisentraut1 parent949e2e7 commit3b50275
File tree
4 files changed
+44
-1
lines changed- src
- backend/utils/adt
- bin/initdb
- test/regress
- expected
- sql
4 files changed
+44
-1
lines changedLines changed: 34 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2503 | 2503 |
| |
2504 | 2504 |
| |
2505 | 2505 |
| |
| 2506 | + | |
2506 | 2507 |
| |
2507 | 2508 |
| |
2508 | 2509 |
| |
| |||
2517 | 2518 |
| |
2518 | 2519 |
| |
2519 | 2520 |
| |
| 2521 | + | |
| 2522 | + | |
| 2523 | + | |
| 2524 | + | |
| 2525 | + | |
| 2526 | + | |
| 2527 | + | |
| 2528 | + | |
| 2529 | + | |
| 2530 | + | |
| 2531 | + | |
| 2532 | + | |
| 2533 | + | |
| 2534 | + | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
2520 | 2551 |
| |
2521 | 2552 |
| |
2522 | 2553 |
| |
| |||
2527 | 2558 |
| |
2528 | 2559 |
| |
2529 | 2560 |
| |
| 2561 | + | |
| 2562 | + | |
| 2563 | + | |
2530 | 2564 |
| |
2531 | 2565 |
| |
2532 | 2566 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1701 | 1701 |
| |
1702 | 1702 |
| |
1703 | 1703 |
| |
1704 |
| - | |
| 1704 | + | |
1705 | 1705 |
| |
1706 | 1706 |
| |
1707 | 1707 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1312 | 1312 |
| |
1313 | 1313 |
| |
1314 | 1314 |
| |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
1315 | 1322 |
| |
1316 | 1323 |
| |
1317 | 1324 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
521 | 521 |
| |
522 | 522 |
| |
523 | 523 |
| |
| 524 | + | |
| 525 | + | |
524 | 526 |
| |
525 | 527 |
| |
526 | 528 |
| |
|
0 commit comments
Comments
(0)