Commit 869650f
committed
Support language tags in older ICU versions (53 and earlier).
By calling uloc_canonicalize() before parsing the attributes, the
existing locale attribute parsing logic works on language tags as
well.
Fix a small memory leak, too.
Discussion: http://postgr.es/m/60da0cecfb512a78b8666b31631a636215d8ce73.camel@j-davis.com
Reviewed-by: Peter Eisentraut1 parent e8e1f96 commit 869650f
File tree
4 files changed
+50
-11
lines changed- src
- backend
- commands
- utils/adt
- test/regress
- expected
- sql
4 files changed
+50
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
953 | | - | |
954 | 953 | | |
955 | 954 | | |
956 | 955 | | |
| |||
959 | 958 | | |
960 | 959 | | |
961 | 960 | | |
962 | | - | |
963 | 961 | | |
964 | 962 | | |
965 | 963 | | |
966 | 964 | | |
967 | 965 | | |
968 | | - | |
| 966 | + | |
969 | 967 | | |
970 | 968 | | |
971 | 969 | | |
972 | 970 | | |
973 | 971 | | |
974 | | - | |
975 | | - | |
| 972 | + | |
| 973 | + | |
976 | 974 | | |
977 | 975 | | |
978 | 976 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2634 | 2634 | | |
2635 | 2635 | | |
2636 | 2636 | | |
2637 | | - | |
2638 | | - | |
2639 | | - | |
| 2637 | + | |
| 2638 | + | |
| 2639 | + | |
| 2640 | + | |
| 2641 | + | |
| 2642 | + | |
2640 | 2643 | | |
2641 | 2644 | | |
2642 | 2645 | | |
| |||
2646 | 2649 | | |
2647 | 2650 | | |
2648 | 2651 | | |
2649 | | - | |
| 2652 | + | |
| 2653 | + | |
| 2654 | + | |
| 2655 | + | |
| 2656 | + | |
| 2657 | + | |
| 2658 | + | |
| 2659 | + | |
| 2660 | + | |
| 2661 | + | |
| 2662 | + | |
| 2663 | + | |
| 2664 | + | |
| 2665 | + | |
| 2666 | + | |
| 2667 | + | |
| 2668 | + | |
| 2669 | + | |
| 2670 | + | |
| 2671 | + | |
| 2672 | + | |
| 2673 | + | |
2650 | 2674 | | |
2651 | | - | |
| 2675 | + | |
| 2676 | + | |
| 2677 | + | |
| 2678 | + | |
| 2679 | + | |
2652 | 2680 | | |
2653 | 2681 | | |
2654 | 2682 | | |
| |||
2663 | 2691 | | |
2664 | 2692 | | |
2665 | 2693 | | |
2666 | | - | |
2667 | 2694 | | |
2668 | 2695 | | |
2669 | 2696 | | |
| |||
2730 | 2757 | | |
2731 | 2758 | | |
2732 | 2759 | | |
| 2760 | + | |
| 2761 | + | |
2733 | 2762 | | |
2734 | 2763 | | |
2735 | 2764 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1304 | 1304 | | |
1305 | 1305 | | |
1306 | 1306 | | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
1307 | 1315 | | |
1308 | 1316 | | |
1309 | 1317 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
521 | 525 | | |
522 | 526 | | |
523 | 527 | | |
| |||
0 commit comments