]> granicus.if.org Git - postgresql/commit
Enforce translation mode for Windows frontends to text with open/fopen
authorMichael Paquier <michael@paquier.xyz>
Wed, 19 Sep 2018 23:54:37 +0000 (08:54 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 19 Sep 2018 23:54:37 +0000 (08:54 +0900)
commit40cfe86068f4c385517a8423cb8b3001e2f6a2fd
tree690e928b1c1ec4495500f0a4a2a02b08b1aa45a7
parent0d38e4ebb7a136a4376536c7989bf8f61f052688
Enforce translation mode for Windows frontends to text with open/fopen

Allowing frontends to use concurrent-safe open() and fopen() via 0ba06e0
has the side-effect of switching the default translation mode from text
to binary, so the switch can cause breakages for frontend tools when the
caller of those new versions specifies neither binary and text.  This
commit makes sure to maintain strict compatibility with past versions,
so as no frontends should see a difference when upgrading.

Author: Laurenz Albe
Reviewed-by: Michael Paquier, Tom Lane
Discussion: https://postgr.es/m/20180917140202.GF31460@paquier.xyz
src/port/open.c