diff options
author | Tom Lane | 2020-07-09 00:25:52 +0000 |
---|---|---|
committer | Tom Lane | 2020-07-09 00:25:52 +0000 |
commit | 91bdf499b37b0bbef34e2bab5cc40dde52bda52c (patch) | |
tree | eaf3e17c4316cceece0724b5df1c69e98d8e2894 /src/template | |
parent | 2b7dbc0db6ecf38fc305284d006a1ef8f5354fbb (diff) |
Tighten up Windows CRLF conversion in our TAP test scripts.
The previous approach was to search-and-destroy all \r occurrences
no matter what. That seems more likely to hide bugs than anything
else; indeed it seems to be hiding one now. Fix things so that
we only transform \r\n to \n.
Side effects: must do this before, not after, chomp'ing if we're
going to chomp, else we'd fail to clean up a trailing \r\n. Also,
remove safe_psql's redundant repetition of what psql already did;
else it might reduce \r\r\n to \n, which is exactly the scenario
I'm hoping to expose.
Perhaps this should be back-patched, but for now I'm content to
see what happens in HEAD.
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/template')
0 files changed, 0 insertions, 0 deletions