From: corinna Date: Fri, 9 Oct 2009 11:19:18 +0000 (+0000) Subject: * pathnames.sgml (pathnames-specialchars): Add control chars to the X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=1d427cb34aed4c62456220cbad0edb8069930b27;p=pf3gnuchains%2Fpf3gnuchains3x.git * pathnames.sgml (pathnames-specialchars): Add control chars to the list. Explain backslash exception. --- diff --git a/winsup/doc/ChangeLog b/winsup/doc/ChangeLog index c8655e97de..646d584bb5 100644 --- a/winsup/doc/ChangeLog +++ b/winsup/doc/ChangeLog @@ -1,3 +1,8 @@ +2009-10-09 Corinna Vinschen + + * pathnames.sgml (pathnames-specialchars): Add control chars to the + list. Explain backslash exception. + 2009-10-03 Dave Korn * faq-using.xml (faq.using.bloda): Add Lenovo IPS Core Service. diff --git a/winsup/doc/pathnames.sgml b/winsup/doc/pathnames.sgml index 527096fcb2..cb8365b970 100644 --- a/winsup/doc/pathnames.sgml +++ b/winsup/doc/pathnames.sgml @@ -379,7 +379,10 @@ all of them are removed before the file is created. This restriction only affects native Win32 applications. Cygwin applications can create and access files with trailing dots and spaces without problems. -Some characters are disallowed in filenames on Windows filesystems: +Additionally, some characters are disallowed in filenames on Windows +filesystems. These forbidden characters are the ASCII control characters +from ASCII value 1 to 31, plus the following charcters which have a special +menaing in the Win32 API: " * : < > ? | \ @@ -390,6 +393,10 @@ restriction. All of the above characters, except for the backslash, are converted to special UNICODE characters in the range 0xf000 to 0xf0ff (the "Private use area") when creating or accessing files. +The backslash has to be exempt from this conversion, because Cygwin +accepts Win32 filenames including backslashes as path separators on input. +Converting backslashes using the above method would make this impossible. +