This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


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

Re: Special chars inside filename



At 09:36 AM 2/5/2001, Andrew G. Tereschenko wrote:
>Hi,
>
>I. Is there any environment option/proposed patch
>to support special as for Win32) chars inside POSIX filenames ?
>
>Win32 reserved for use this set of symbols:
>< > : " / \ |
>As result not all filenames allowed in Cygwin twitch allowed
>in real *nix.
>
>Currently I'm unable to decompress news archive for a leafnode
>because of filenames like "<OAlNo66RAHA.444@CPMSBNEWSW02.betanews.com>"
>(without double quotes). This archive was assembled under Solaris and
>this filenames was valid...
>
>Will it be Ok if Cygwin will encode this chars in valid char sequence ?
>
>II. Is it possible to change \ behavior ??
>Example:
>1. bash-2.04$ uname -a
>CYGWIN_NT-5.1 TAG 1.1.2(0.21/3/2) 2000-06-06 22:20 i686 unknown
>bash-2.04$ cat > c\\a
>bash: c\a: No such file or directory
>
>2. [tag@tigger2 ~]$ uname -a
>SunOS tigger2 5.7 Generic_106542-02 i86pc i386 i86pc
>[tag@tigger2 ~]$ cat > c\\a
>  ^D
>[tag@tigger2 ~]$ ls -la c*
>-rw-r--r--   1 tag      tag            1 Feb  5 09:04 c\a
>
>I think if Cygwin will encode all possible *nix filenames
>into restricted set of win32 filenames then it will be easy
>to add unicode/localised filenames support.
>Also i think that we must strictly define which
>filenames are POSIX and which Win32.
>
>So ? What do think about this ?


This might be a useful option, but it would have to be an option, since 
it would mean that the files created would not be accessible with Win32
tools (only Cygwin-aware ones).  Alternatively, a few days back, someone
suggested a solution of creating a map from invalid characters to valid 
ones.  This alternative is probably better since it would support Win32 
tools.  I'm sure the maintainers would consider a well though-out patch.



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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