Consolidate methods for translating a Perl path to a Windows path.

Noah Misch <noah@leadboat.com>

Commit: a40dca815dd1d703623f774059b103a13f85e0f1
Author: Noah Misch <noah@leadboat.com>
Date: 2019-06-22T03:47:34Z
Releases: 11.5
Consolidate methods for translating a Perl path to a Windows path.

This fixes some TAP suites when using msys Perl and a builddir located
in an msys mount point other than "/".  For example, builddir=/c/pg
exhibited the problem, since /c/pg falls in mount point "/c".
Back-patch to 9.6, where tests first started to perform such
translations.  In back branches, offer both new and old APIs.

Reviewed by Andrew Dunstan.

Discussion: https://postgr.es/m/20190610045838.GA238501@rfd.leadboat.com

Files

Discussion