This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: 3.Using Cygwin, Special filenames, Invalid filenames

On Jan 28 11:14, Csaba Raduly wrote:
> 2011/1/28 Masaki_Takasu :
> > Hello;
> >
> > Cygwin1.7.7 has a problem that incorrect to interpret the files created by Macintosh.
> >
> > Steps
> > (1) Create a '"' in name of a file using Macintosh.(Mac OS X 10.6.6)
> > (2) To transfer file(created at step (1)) to Windows from Macintosh by SMB protocol.
> > (3) '"' in name of a file is converted to Unicode 0xF020 according to SMB protocol.
> > (4) To verify the file transferred to Windows using Cygwin "ls"command.
> > (5) Cygwin interprets Unicode 0xF020 as ' '(Spaces) in name of a file.
> >
> > Ââ Character conversion table mapping code in SMB protocol
> >   References
> >
> > Â Â Macintosh ANSI ÂUnicode
> > Â Â --------------------------------
> > Â Â 0x01-0x1F Â Â Â 0xF001-0xF01F
> > Â Â " Â Â Â Â Â Â Â 0xF020
> > Â Â * Â Â Â Â Â Â Â 0xF021
> > Â Â / Â Â Â Â Â Â Â 0xF022
> > Â Â < Â Â Â Â Â Â Â 0xF023
> > Â Â > Â Â Â Â Â Â Â 0xF024
> > Â Â ? Â Â Â Â Â Â Â 0xF025
> > Â Â \ Â Â Â Â Â Â Â 0xF026
> > Â Â | Â Â Â Â Â Â Â 0xF027
> Deja vu. You may be out of luck:
> See also:
> Macintosh. Think different!

It's kind of idiotic that SFM uses another, incompatible mapping
than SFU.  Cygwin supports the SFU mapping, so you have to do
a second mapping using some perl script or so.  For the mapping
used in Cygwin, see

Like SFU, Cygwin just transposes the charatcers into the 0xf0XX
range by adding 0xf000 to the ASCII value.

Note that you're out of luck when using slashes or backslash.  You have
to convert these filenames into names with different chars.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

Problem reports:
Unsubscribe info:

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