Re: [patch] IS_ABSOLUTE_PATH to handle both DOS and POSIX path st yles

Eli Zaretskii
2008-01-07T04:21:30Z

> Date: Sun, 6 Jan 2008 22:40:31 -0500
> From: Daniel Jacobowitz <drow@false.org>
> Cc: Eli Zaretskii <eliz@gnu.org>, gdb-patches@sources.redhat.com,
> ARistovski@qnx.com, gcc-patches@gcc.gnu.org, RMansfield@qnx.com
>
> On Sun, Jan 06, 2008 at 01:07:25PM -0800, Doug Evans wrote:
> > Another thing that occurs to me is that I vaguely remember building
> > libraries in one environment and then using the library in another. I
> > could be mistaken, it's been awhile. Can one have a case where both
> > path formats are in use simultaneously?
>
> Yes, that's what I was going to add. This is how I normally work.
> We build toolchains using a GNU/Linux host, including libraries. When
> our customers run the IDE on Windows, they get mixed debug
> information; some has Windows paths, some has POSIX paths. I think
> that a best-effort approach to work with both is more valuable than
> handling the few corner cases where that breaks down (e.g. paths
> containing a '\' or ':' on a POSIX system).

We must have a way for a user on a Posix system to have file names
with `\' or `:'. It is IMO unacceptable to say that these cases,
however corner, are simply not supported. Other packages, such as
Bash, do give you a way of having them, albeit an inconvenient way.