forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit05bb4fc
committed
Always set the six locale category environment variables in main().
Typical server invocations already achieved that. Invalid localesettings in the initial postmaster environment interfered, as couldmalloc() failure. Setting "LC_MESSAGES=pt_BR.utf8 LC_ALL=invalid" inthe postmaster environment will now choose C-locale messages, notBrazilian Portuguese messages. Most localized programs, including allPostgreSQL frontend executables, do likewise. Users are unlikely toobserve changes involving locale categories other than LC_MESSAGES.CheckMyDatabase() ensures that we successfully set LC_COLLATE andLC_CTYPE; main() sets the remaining three categories to locale "C",which almost cannot fail. Back-patch to 9.0 (all supported versions).1 parent6168300 commit05bb4fc
1 file changed
+28
-10
lines changedLines changed: 28 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
| 54 | + | |
54 | 55 |
| |
55 | 56 |
| |
56 | 57 |
| |
| |||
122 | 123 |
| |
123 | 124 |
| |
124 | 125 |
| |
125 |
| - | |
| 126 | + | |
126 | 127 |
| |
127 |
| - | |
| 128 | + | |
128 | 129 |
| |
129 | 130 |
| |
130 |
| - | |
| 131 | + | |
131 | 132 |
| |
132 |
| - | |
| 133 | + | |
133 | 134 |
| |
134 | 135 |
| |
135 |
| - | |
136 |
| - | |
| 136 | + | |
| 137 | + | |
137 | 138 |
| |
138 | 139 |
| |
139 | 140 |
| |
140 |
| - | |
| 141 | + | |
141 | 142 |
| |
142 | 143 |
| |
143 | 144 |
| |
144 | 145 |
| |
145 | 146 |
| |
146 | 147 |
| |
147 |
| - | |
148 |
| - | |
149 |
| - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
150 | 151 |
| |
151 | 152 |
| |
152 | 153 |
| |
| |||
278 | 279 |
| |
279 | 280 |
| |
280 | 281 |
| |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
281 | 299 |
| |
282 | 300 |
| |
283 | 301 |
| |
|
0 commit comments
Comments
(0)