- Notifications
You must be signed in to change notification settings - Fork28
Commit514f613
committed
Second try at getting useful errors out of newlocale/_create_locale.
The early buildfarm returns for commit1e165d0 are pretty awful:not only does Windows not return a useful error, but it looks likea lot of Unix-ish platforms don't either. Given the number ofdifferent errnos seen so far, guess that what's really going on isthat some newlocale() implementations fail to set errno at all.Hence, let's try zeroing errno just before newlocale() and thenif it's still zero report as though it's ENOENT. That should coverthe Windows case too.It's clear that we'll have to drop the regression test case, unlesswe want to maintain a separate expected-file for platforms withoutHAVE_LOCALE_T. But I'll leave it there awhile longer to see if thisactually improves matters or not.Discussion:https://postgr.es/m/CAKKotZS-wcDcofXDCH=sidiuajE+nqHn2CGjLLX78anyDmi3gQ@mail.gmail.com1 parent8e75372 commit514f613
1 file changed
+12
-4
lines changedLines changed: 12 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1229 | 1229 |
| |
1230 | 1230 |
| |
1231 | 1231 |
| |
1232 |
| - | |
1233 |
| - | |
1234 |
| - | |
1235 |
| - | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
1236 | 1241 |
| |
1237 | 1242 |
| |
1238 | 1243 |
| |
| |||
1311 | 1316 |
| |
1312 | 1317 |
| |
1313 | 1318 |
| |
| 1319 | + | |
1314 | 1320 |
| |
1315 | 1321 |
| |
1316 | 1322 |
| |
| |||
1326 | 1332 |
| |
1327 | 1333 |
| |
1328 | 1334 |
| |
| 1335 | + | |
1329 | 1336 |
| |
1330 | 1337 |
| |
1331 | 1338 |
| |
| 1339 | + | |
1332 | 1340 |
| |
1333 | 1341 |
| |
1334 | 1342 |
| |
|
0 commit comments
Comments
(0)