forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbf3401f
committed
Harmonize MinGW CODESET lookup with MSVC.
Historically, MinGW environments lacked some Windows API calls, so wetook a different code path in win32_langinfo(). Somehow, the codechange in commit35eeea6 (removing setlocale() calls) caused oneparticular 001_initdb.pl test to fail on MinGW + ICU builds, becausepg_import_system_collations() found no collations. It might take aMinGW user to discover the exact reason.Updating that function to use the same code as MSVC seems to fix thattest, so lets do that. (There are plenty more places that test for MSVCunnecessarily, to be investigated later.)While here, also rename the helper function win32_langinfo() towin32_get_codeset(), to explain what it does less confusingly; it's notreally a general langinfo() substitute.Noticed by triggering the optional MinGW CI task; no build farm animalsfailed.Discussion:https://postgr.es/m/CA%2BhUKGKBWfhXQ3J%2B2Lj5PhKvQnGD%3DsywA0XQcb7boTCf%3DerVLg%40mail.gmail.com1 parent4c1b4cd commitbf3401f
1 file changed
+3
-6
lines changedLines changed: 3 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
193 | 193 |
| |
194 | 194 |
| |
195 | 195 |
| |
196 |
| - | |
| 196 | + | |
197 | 197 |
| |
198 | 198 |
| |
199 | 199 |
| |
| |||
203 | 203 |
| |
204 | 204 |
| |
205 | 205 |
| |
206 |
| - | |
| 206 | + | |
207 | 207 |
| |
208 | 208 |
| |
209 | 209 |
| |
210 |
| - | |
211 |
| - | |
212 | 210 |
| |
213 | 211 |
| |
214 | 212 |
| |
| |||
233 | 231 |
| |
234 | 232 |
| |
235 | 233 |
| |
236 |
| - | |
237 | 234 |
| |
238 | 235 |
| |
239 | 236 |
| |
| |||
336 | 333 |
| |
337 | 334 |
| |
338 | 335 |
| |
339 |
| - | |
| 336 | + | |
340 | 337 |
| |
341 | 338 |
| |
342 | 339 |
| |
|
0 commit comments
Comments
(0)