This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Fix problems related to Mingw/DJGPP file names containing colons
- From: DJ Delorie <dj at redhat dot com>
- To: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: eliz at gnu dot org, tromey at redhat dot com, gdb-patches at sourceware dot org
- Date: Sat, 13 Aug 2011 16:50:59 -0400
- Subject: Re: [RFC] Fix problems related to Mingw/DJGPP file names containing colons
- References: <004901cc5907$85006320$8f012960$%muller@ics-cnrs.unistra.fr> <83vcu2wnvj.fsf@gnu.org> <m34o1mlezb.fsf@fleche.redhat.com> <83sjp6wmhb.fsf@gnu.org> <003c01cc59a1$49cc1520$dd643f60$%muller@ics-cnrs.unistra.fr> <83ei0pwpol.fsf@gnu.org> <005101cc59f9$7e87a790$7b96f6b0$@muller@ics-cnrs.unistra.fr>
> But there might be some 'exotic' file systems that allow
> both double-quotes and colons as valid characters in their
> filenames.
Any unix-like OS supports that:
$ touch 'foo"bar:grill'
-rw-r--r-- 1 dj games 0 Aug 13 16:46 foo"bar:grill
The only two characters you *can't* put in a file name or subdirectory
name are the NUL character and possibly '/' (I've seen ways to make
filenames with / in them). Every other character is 100% legal.
> I am wondering how spaces within filenames are handled
> inside GDB on mingw32...
> I just tested... No very well :(
Any unix-like OS also supports spaces in filenames!
$ touch 'foo bar'
-rw-r--r-- 1 dj games 0 Aug 13 16:47 foo bar
These are not new problems, nor are they dos/windows specific.