forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1e165d0
committed
Try to deliver a sane message for _create_locale() failure on Windows.
We were just printing errno, which is certainly not gonna work onWindows. Now, it's not entirely clear from Microsoft's documentationwhether _create_locale() adheres to standard Windows error reportingconventions, but let's assume it does and try to map the GetLastErrorresult to an errno. If this turns out not to work, probably the bestthing to do will be to assume the error is always ENOENT on Windows.This is a longstanding bug, but given the lack of previous fieldcomplaints, I'm not excited about back-patching it.Per report from Murtuza Zabuawala.Discussion:https://postgr.es/m/CAKKotZS-wcDcofXDCH=sidiuajE+nqHn2CGjLLX78anyDmi3gQ@mail.gmail.com1 parentc1bb787 commit1e165d0
File tree
3 files changed
+11
-2
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+11
-2
lines changedLines changed: 7 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1227 | 1227 |
| |
1228 | 1228 |
| |
1229 | 1229 |
| |
1230 |
| - | |
1231 |
| - | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
1232 | 1236 |
| |
1233 | 1237 |
| |
1234 | 1238 |
| |
1235 | 1239 |
| |
1236 | 1240 |
| |
| 1241 | + | |
1237 | 1242 |
| |
1238 | 1243 |
| |
1239 | 1244 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
627 | 627 |
| |
628 | 628 |
| |
629 | 629 |
| |
| 630 | + | |
| 631 | + | |
| 632 | + | |
630 | 633 |
| |
631 | 634 |
| |
632 | 635 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
234 | 234 |
| |
235 | 235 |
| |
236 | 236 |
| |
| 237 | + | |
237 | 238 |
| |
238 | 239 |
| |
239 | 240 |
| |
|
0 commit comments
Comments
(0)