forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb124104
committed
Fix Utils.pm's locale-munging so that Perl itself is also affected.
Utils.pm has a BEGIN block that editorializes on the locale-relatedenvironment variables, primarily in order to stabilize the behaviorof child programs. It turns out that if the calling test scripthas already done "use locale", this fails to affect the behaviorof Perl itself, causing locale behavior to be different betweenPerl and child programs. That breaks commitcd82e5c's attemptto deal with locale-specific behavior in psql.To fix, we just need to call setlocale() to redo the calculationof locale.Per report from Aleksander Alekseev. No back-patch for now, sincethere are no locale-dependent TAP tests in prior branches, andI'm not yet convinced that this won't have side-effects of its own.Discussion:https://postgr.es/m/CAJ7c6TO9KpYYxoVVseWEQB5KtjWDkt8NfyAeKPcHoe2Jq+ykpw@mail.gmail.com1 parent363e8f9 commitb124104
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
| 58 | + | |
58 | 59 |
| |
59 | 60 |
| |
60 | 61 |
| |
| |||
103 | 104 |
| |
104 | 105 |
| |
105 | 106 |
| |
| 107 | + | |
106 | 108 |
| |
107 | 109 |
| |
108 | 110 |
| |
|
0 commit comments
Comments
(0)