forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6cfb3a3
committed
Strip Windows newlines from extension script files manually.
Revert commit924e039 in favor of adding code to convert \r\n to \nexplicitly, on Windows only. The idea of letting text mode do thework fails for a couple of reasons:* Per Microsoft documentation, text mode also causes control-Z to beinterpreted as end-of-file. While it may be unlikely that extensionscripts contain control-Z, we've historically allowed it, and breakingthe case doesn't seem wise.* Apparently, on some Windows configurations, "r" mode is interpretedas binary not text mode. We could force it with "rt" but that wouldbe inconsistent with our code elsewhere, and it would still requireWindows-specific coding.Thanks to Alexander Lakhin for investigation.Discussion:https://postgr.es/m/79284195-4993-7b00-f6df-8db28ca60fa3@gmail.com1 parent8a98822 commit6cfb3a3
1 file changed
+34
-4
lines changedLines changed: 34 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
724 | 724 |
| |
725 | 725 |
| |
726 | 726 |
| |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
727 | 731 |
| |
728 | 732 |
| |
729 | 733 |
| |
| |||
3618 | 3622 |
| |
3619 | 3623 |
| |
3620 | 3624 |
| |
3621 |
| - | |
| 3625 | + | |
| 3626 | + | |
3622 | 3627 |
| |
3623 | 3628 |
| |
3624 | 3629 |
| |
| |||
3639 | 3644 |
| |
3640 | 3645 |
| |
3641 | 3646 |
| |
3642 |
| - | |
| 3647 | + | |
3643 | 3648 |
| |
3644 | 3649 |
| |
3645 | 3650 |
| |
3646 | 3651 |
| |
3647 | 3652 |
| |
3648 | 3653 |
| |
3649 | 3654 |
| |
3650 |
| - | |
| 3655 | + | |
3651 | 3656 |
| |
3652 | 3657 |
| |
3653 | 3658 |
| |
| |||
3656 | 3661 |
| |
3657 | 3662 |
| |
3658 | 3663 |
| |
3659 |
| - | |
| 3664 | + | |
| 3665 | + | |
| 3666 | + | |
| 3667 | + | |
| 3668 | + | |
| 3669 | + | |
| 3670 | + | |
| 3671 | + | |
| 3672 | + | |
| 3673 | + | |
| 3674 | + | |
| 3675 | + | |
| 3676 | + | |
| 3677 | + | |
| 3678 | + | |
| 3679 | + | |
| 3680 | + | |
| 3681 | + | |
| 3682 | + | |
| 3683 | + | |
| 3684 | + | |
| 3685 | + | |
| 3686 | + | |
| 3687 | + | |
| 3688 | + | |
| 3689 | + | |
3660 | 3690 |
| |
3661 | 3691 |
|
0 commit comments
Comments
(0)