This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: Use lrealpath instead of gdb_realpath


On Sun, May 29, 2005 at 09:09:25PM +0300, Eli Zaretskii wrote:
>>From: Daniel Jacobowitz
>>
>>>. The Windows code in lrealpath converts all forward slashes to
>>>  backslashes, which I think is a bad idea.  By contrast, the current
>>>  gdb_realpath would leave existing forward slashes alone.  That is
>>>  an incompatible change, and my gut feeling is that we should not
>>>  risk it.  On top of that, I think we always use '/' to generate
>>>  file names, so with this change we will produce ugly file names
>>>  like D:\foo\bar/baz.c.
>> 
>>The Windows maintainers disagree with you.  So, for the record, do I.
>
>Disagree with what part?  that backslashes might cause trouble or that
>D:\foo\bar/baz.c is ugly?

Let me clarify what I said before.

I *do* think that D:\foo\bar/baz.c is ugly.  I haven't seen a case where
this type of path was unacceptable, though.  However, if there was going
to be a problem then it would probably be in the use of '/'.  So, I
think that lrealpath should probably be changed to convert every slash
to a backslash.

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]