Re: Path separator - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Path separator
Date
Msg-id 15238.1237408388@sss.pgh.pa.us
Whole thread Raw
In response to Path separator  (Magnus Hagander <magnus@hagander.net>)
Responses Re: Path separator  (Magnus Hagander <magnus@hagander.net>)
List pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes:
> I've seen a couple of reports that the new SSL error messages on windows
> look strange with paths the wrong way. For example:

> root certificate file "C:\Documents and Settings\<SNIP>\Application
> Data/postgresql/root.crt" does not exist.

> The issue being the mix of forward and backwards slashes. Attached patch
> should fix this.

> Is this worth doing? Comments?

In view of the way that canonicalize_path() works, I can't help thinking
this is going in precisely the wrong direction.

Also, don't we already have a macro someplace for the platform's
preferred path separator?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: small but useful patches for text search
Next
From: Bruce Momjian
Date:
Subject: Re: Immediate shutdown and system(3)