Actually, FAT and NTFS both support brackets in file names. I ran into this issue of brackets when trying to version uncompressed Office 2007 documents (docx is just a zip that contains xml files, including a [Content-Types].xml at the root).
On Thu, Sep 29, 2011 at 13:43, Richard Hipp <[email protected]> wrote: > > > On Thu, Sep 29, 2011 at 5:27 AM, Dmitry Chestnykh <[email protected] > > wrote: > >> What's the rationale for disallowing [ and ] in filenames? Are there any >> systems that don't like them (maybe FAT)? Or maybe this is due to collision >> with [wiki/ci links]? >> > > Special characters like this are a minefield of potential bugs. I > disallowed them for robustness and to avoid having to provide lots of > escapes and work-arounds for globbing and whatnot. > > > >> >> From file_is_simple_pathname(const char *z): >> >> ** * Does not contain any of these characters in the path: "\*[]?" >> >> Brackets are not mentioned here: >> >> http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx >> >> and here >> http://en.wikipedia.org/wiki/Comparison_of_file_systems >> >> however NTFS doesn't allow: >> >> < > : " | ? * / \ >> >> -- >> Dmitry Chestnykh >> >> _______________________________________________ >> fossil-users mailing list >> [email protected] >> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users >> > > > > -- > D. Richard Hipp > [email protected] > > _______________________________________________ > fossil-users mailing list > [email protected] > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > > -- Benoit Mortgat 20, avenue Marcel Paul 69200 Vénissieux, France +33 6 17 15 41 58 +33 4 27 11 61 23
_______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

