forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1671f99
committed
Validate ICU locales.
For ICU collations, ensure that the locale's language exists in ICU,and that the locale can be opened.Basic validation helps avoid minor mistakes and misspellings, whichoften fall back to the root locale instead of the intendedlocale. It's even more important to avoid such mistakes in ICUversions 54 and earlier, where the same (misspelled) locale stringcould fall back to different locales depending on the environment.Discussion:https://postgr.es/m/11b1eeb7e7667fdd4178497aeb796c48d26e69b9.camel@j-davis.comDiscussion:https://postgr.es/m/df2efad0cae7c65180df8e5ebb709e5eb4f2a82b.camel@j-davis.comReviewed-by: Peter Eisentraut1 parentb7cea58 commit1671f99
File tree
11 files changed
+210
-13
lines changed- doc/src/sgml
- src
- backend
- commands
- utils
- adt
- misc
- bin/initdb
- t
- include/utils
- test/regress
- expected
- sql
11 files changed
+210
-13
lines changedLines changed: 26 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9804 | 9804 |
| |
9805 | 9805 |
| |
9806 | 9806 |
| |
| 9807 | + | |
| 9808 | + | |
| 9809 | + | |
| 9810 | + | |
| 9811 | + | |
| 9812 | + | |
| 9813 | + | |
| 9814 | + | |
| 9815 | + | |
| 9816 | + | |
| 9817 | + | |
| 9818 | + | |
| 9819 | + | |
| 9820 | + | |
| 9821 | + | |
| 9822 | + | |
| 9823 | + | |
| 9824 | + | |
| 9825 | + | |
| 9826 | + | |
| 9827 | + | |
| 9828 | + | |
| 9829 | + | |
| 9830 | + | |
| 9831 | + | |
| 9832 | + | |
9807 | 9833 |
| |
9808 | 9834 |
| |
9809 | 9835 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
258 | 258 |
| |
259 | 259 |
| |
260 | 260 |
| |
| 261 | + | |
| 262 | + | |
261 | 263 |
| |
262 | 264 |
| |
263 | 265 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1058 | 1058 |
| |
1059 | 1059 |
| |
1060 | 1060 |
| |
1061 |
| - | |
| 1061 | + | |
1062 | 1062 |
| |
1063 | 1063 |
| |
1064 | 1064 |
| |
|
Lines changed: 63 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
| 61 | + | |
61 | 62 |
| |
62 | 63 |
| |
63 | 64 |
| |
| |||
95 | 96 |
| |
96 | 97 |
| |
97 | 98 |
| |
| 99 | + | |
| 100 | + | |
98 | 101 |
| |
99 | 102 |
| |
100 | 103 |
| |
| |||
2821 | 2824 |
| |
2822 | 2825 |
| |
2823 | 2826 |
| |
2824 |
| - | |
| 2827 | + | |
2825 | 2828 |
| |
2826 | 2829 |
| |
2827 |
| - | |
| 2830 | + | |
2828 | 2831 |
| |
2829 | 2832 |
| |
2830 |
| - | |
| 2833 | + | |
2831 | 2834 |
| |
2832 | 2835 |
| |
2833 |
| - | |
| 2836 | + | |
| 2837 | + | |
| 2838 | + | |
| 2839 | + | |
| 2840 | + | |
| 2841 | + | |
| 2842 | + | |
| 2843 | + | |
| 2844 | + | |
| 2845 | + | |
| 2846 | + | |
| 2847 | + | |
| 2848 | + | |
| 2849 | + | |
| 2850 | + | |
| 2851 | + | |
| 2852 | + | |
| 2853 | + | |
| 2854 | + | |
| 2855 | + | |
| 2856 | + | |
| 2857 | + | |
| 2858 | + | |
| 2859 | + | |
| 2860 | + | |
| 2861 | + | |
| 2862 | + | |
| 2863 | + | |
| 2864 | + | |
| 2865 | + | |
| 2866 | + | |
2834 | 2867 |
| |
2835 |
| - | |
| 2868 | + | |
| 2869 | + | |
| 2870 | + | |
| 2871 | + | |
| 2872 | + | |
| 2873 | + | |
| 2874 | + | |
| 2875 | + | |
| 2876 | + | |
| 2877 | + | |
| 2878 | + | |
| 2879 | + | |
| 2880 | + | |
| 2881 | + | |
| 2882 | + | |
| 2883 | + | |
| 2884 | + | |
| 2885 | + | |
| 2886 | + | |
| 2887 | + | |
| 2888 | + | |
| 2889 | + | |
| 2890 | + | |
2836 | 2891 |
| |
2837 |
| - | |
| 2892 | + | |
| 2893 | + | |
2838 | 2894 |
| |
2839 | 2895 |
| |
2840 | 2896 |
| |
2841 |
| - | |
| 2897 | + | |
2842 | 2898 |
| |
2843 | 2899 |
| |
2844 | 2900 |
| |
|
Lines changed: 26 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
166 | 166 |
| |
167 | 167 |
| |
168 | 168 |
| |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
169 | 185 |
| |
170 | 186 |
| |
171 | 187 |
| |
| |||
4643 | 4659 |
| |
4644 | 4660 |
| |
4645 | 4661 |
| |
| 4662 | + | |
| 4663 | + | |
| 4664 | + | |
| 4665 | + | |
| 4666 | + | |
| 4667 | + | |
| 4668 | + | |
| 4669 | + | |
| 4670 | + | |
| 4671 | + | |
4646 | 4672 |
| |
4647 | 4673 |
| |
4648 | 4674 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
731 | 731 |
| |
732 | 732 |
| |
733 | 733 |
| |
| 734 | + | |
| 735 | + | |
| 736 | + | |
734 | 737 |
| |
735 | 738 |
| |
736 | 739 |
| |
|
Lines changed: 56 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2242 | 2242 |
| |
2243 | 2243 |
| |
2244 | 2244 |
| |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
2245 | 2297 |
| |
2246 | 2298 |
| |
2247 | 2299 |
| |
| |||
2344 | 2396 |
| |
2345 | 2397 |
| |
2346 | 2398 |
| |
| 2399 | + | |
| 2400 | + | |
2347 | 2401 |
| |
2348 |
| - | |
2349 |
| - | |
| 2402 | + | |
| 2403 | + | |
2350 | 2404 |
| |
2351 | 2405 |
| |
2352 | 2406 |
| |
|
Lines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
128 | 128 |
| |
129 | 129 |
| |
130 | 130 |
| |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
131 | 149 |
| |
132 | 150 |
| |
133 | 151 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
| 43 | + | |
43 | 44 |
| |
44 | 45 |
| |
45 | 46 |
| |
| |||
118 | 119 |
| |
119 | 120 |
| |
120 | 121 |
| |
| 122 | + | |
| 123 | + | |
121 | 124 |
| |
122 | 125 |
| |
123 | 126 |
| |
124 | 127 |
| |
125 |
| - | |
126 | 128 |
| |
127 | 129 |
| |
128 | 130 |
| |
|
Lines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1035 | 1035 |
| |
1036 | 1036 |
| |
1037 | 1037 |
| |
1038 |
| - | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
1039 | 1046 |
| |
1040 | 1047 |
| |
1041 | 1048 |
| |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
371 | 371 |
| |
372 | 372 |
| |
373 | 373 |
| |
374 |
| - | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
375 | 378 |
| |
376 | 379 |
| |
377 | 380 |
| |
|
0 commit comments
Comments
(0)