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]

Special chars inside filename


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 ?

=============================
Andrew G. Tereschenko
Software Engineer
Integrated Banking Information Systems
tag@ibis.odessa.ua



--
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]