Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Lasthop: 61.173.8.42 Message-ID: <000e01c54c64$168c9640$fe01a8c0@dellpc> From: "Zhuang Jianmin" To: References: <001201c54c59$b5926e00$fe01a8c0 AT dellpc> <42719236 DOT 44C9FFBB AT dessent DOT net> Subject: Re: 1.5.16: Filename case sensitivity problem Date: Fri, 29 Apr 2005 10:35:19 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id j3T2aLvY028881 Thanks Brain. I do agree with you that the issue is caused by managed mount you mentioned. But to verify such issue,I installed cygwin severial times from setup, I did nothing on mount or any other cygwin setting. I have no idea how to turn on/off managed mount. Would you please explain more on how to turn off it? seems it's turned on by default. Attached please to cygcheck output for your reference. Thanks, Zhuang Jianmin Cygwin Configuration Diagnostics Current System Time: Fri Apr 29 10:27:43 2005 Windows XP Professional Ver 5.1 Build 2600 Service Pack 2 Path: e:\cygwin\arm\bin e:\cygwin\usr\local\bin e:\cygwin\bin e:\cygwin\bin e:\cygwin\usr\X11R6\bin e:\cygwin\bin e:\cygwin\bin e:\cygwin\usr\x11r6\bin c:\WINDOWS\system32 c:\WINDOWS c:\WINDOWS\System32\Wbem Output from e:\cygwin\bin\id.exe (nontsec) UID: 1003(Master) GID: 513(None) 0(root) 513(None) 544(Administrators) 545(Users) Output from e:\cygwin\bin\id.exe (ntsec) UID: 1003(Master) GID: 513(None) 0(root) 513(None) 544(Administrators) 545(Users) SysDir: C:\WINDOWS\system32 WinDir: C:\WINDOWS HOME = `e:\master\cygwin' MAKE_MODE = `unix' PWD = `/diske/master/cygwin' USER = `Master' ALLUSERSPROFILE = `C:\Documents and Settings\All Users' APPDATA = `C:\Documents and Settings\Master\Application Data' CLIENTNAME = `Console' COLORFGBG = `11;default;0' COLORTERM = `rxvt-xpm' COMMONPROGRAMFILES = `C:\Program Files\Common Files' COMPUTERNAME = `DELLPC' COMSPEC = `C:\WINDOWS\system32\cmd.exe' CVS_RSH = `/bin/ssh' CYGWIN_ROOT = `e:\cygwin' DISPLAY = `:0' FP_NO_HOST_CHECK = `NO' HOMEDRIVE = `C:' HOMEPATH = `\Documents and Settings\Master' HOSTNAME = `dellpc' INFOPATH = `/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:' LOGONSERVER = `\\DELLPC' MANPATH = `/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man' NUMBER_OF_PROCESSORS = `1' OLDPWD = `/usr/share/doc/Cygwin' OS = `Windows_NT' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PRINTER = `Adobe PDF' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 15 Model 2 Stepping 7, GenuineIntel' PROCESSOR_LEVEL = `15' PROCESSOR_REVISION = `0207' PROGRAMFILES = `C:\Program Files' PROMPT = `$P$G' PS1 = `\[\033]0;\w\007 \033[32m\]\u@\h \[\033[33m\w\033[0m\] $ ' SESSIONNAME = `Console' SHLVL = `1' SYSTEMDRIVE = `C:' SYSTEMROOT = `C:\WINDOWS' TEMP = `c:\temp' TERM = `xterm' TMP = `c:\temp' USERDOMAIN = `DELLPC' USERNAME = `Master' USERPROFILE = `C:\Documents and Settings\Master' WINDIR = `C:\WINDOWS' WINDOWID = `168111680' _ = `/usr/bin/cygcheck' POSIXLY_CORRECT = `1' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/src (default) = `e:\cygwin\usr\src' flags = 0x00000802 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x00000022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `e:\cygwin' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/diskc (default) = `c:' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/diskd (default) = `d:' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/diske (default) = `e:' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/disks (default) = `s:' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/diskz (default) = `z:' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `e:\cygwin/bin' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `e:\cygwin/lib' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/src (default) = `e:\cygwin\usr\src' flags = 0x0000080a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options c: hd NTFS 6000Mb 56% CP CS UN PA FC BOOT d: hd FAT32 7993Mb 76% CP UN STORAGE e: hd NTFS 24113Mb 73% CP CS UN PA FC user y: cd N/A N/A z: cd N/A N/A e:\cygwin\usr\src /usr/src user binmode e:\cygwin / system binmode c: /diskc system binmode d: /diskd system binmode e: /diske system binmode s: /disks system binmode z: /diskz system binmode e:\cygwin/bin /usr/bin system binmode e:\cygwin/lib /usr/lib system binmode e:\cygwin\usr\src /usr/src system binmode . /cygdrive system binmode,cygdrive Found: e:\cygwin\bin\awk.exe Found: e:\cygwin\bin\bash.exe Found: e:\cygwin\bin\cat.exe Found: e:\cygwin\bin\cp.exe Found: e:\cygwin\bin\cpp.exe Found: e:\cygwin\bin\find.exe Found: e:\cygwin\bin\gcc.exe Found: e:\cygwin\bin\gdb.exe Found: e:\cygwin\bin\grep.exe Found: e:\cygwin\bin\ld.exe Found: e:\cygwin\bin\ls.exe Found: e:\cygwin\bin\make.exe Found: e:\cygwin\bin\mv.exe Found: e:\cygwin\bin\rm.exe Found: e:\cygwin\bin\sed.exe Found: e:\cygwin\bin\sh.exe Found: e:\cygwin\bin\tar.exe 55k 2004/09/14 e:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0 "cygbz2-1.dll" v0.0 ts=2004/9/14 12:16 18k 2004/07/06 e:\cygwin\bin\cygcharset-1.dll - os=4.0 img=1.0 sys=4.0 "cygcharset-1.dll" v0.0 ts=2004/7/7 2:09 7k 2003/10/19 e:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0 "cygcrypt-0.dll" v0.0 ts=2003/10/19 15:57 858k 2005/04/11 e:\cygwin\bin\cygcrypto-0.9.7.dll - os=4.0 img=1.0 sys=4.0 "cygcrypto-0.9.7.dll" v0.0 ts=2005/4/12 2:21 895k 2004/04/28 e:\cygwin\bin\cygdb-4.2.dll - os=4.0 img=1.0 sys=4.0 "cygdb-4.2.dll" v0.0 ts=2004/4/27 23:31 1156k 2004/04/28 e:\cygwin\bin\cygdb_cxx-4.2.dll - os=4.0 img=1.0 sys=4.0 "cygdb_cxx-4.2.dll" v0.0 ts=2004/4/27 23:35 174k 2004/10/14 e:\cygwin\bin\cygexpat-0.dll - os=4.0 img=1.0 sys=4.0 "cygexpat-0.dll" v0.0 ts=2004/10/14 16:34 40k 2004/10/10 e:\cygwin\bin\cygform-8.dll - os=4.0 img=1.0 sys=4.0 "cygform-8.dll" v0.0 ts=2004/10/10 16:33 45k 2001/04/25 e:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0 "cygform5.dll" v0.0 ts=2001/4/25 13:28 35k 2002/01/09 e:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0 "cygform6.dll" v0.0 ts=2002/1/9 14:03 48k 2003/08/09 e:\cygwin\bin\cygform7.dll - os=4.0 img=1.0 sys=4.0 "cygform7.dll" v0.0 ts=2003/8/9 17:25 28k 2003/07/20 e:\cygwin\bin\cyggdbm-3.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm-3.dll" v0.0 ts=2003/7/20 15:58 30k 2003/08/11 e:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm-4.dll" v0.0 ts=2003/8/11 10:12 19k 2003/03/22 e:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm.dll" v0.0 ts=2002/2/20 11:05 15k 2003/07/20 e:\cygwin\bin\cyggdbm_compat-3.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm_compat-3.dll" v0.0 ts=2003/7/20 16:00 15k 2003/08/11 e:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm_compat-4.dll" v0.0 ts=2003/8/11 10:13 17k 2001/06/28 e:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0 "cyghistory4.dll" v0.0 ts=2001/1/7 12:34 29k 2003/08/10 e:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0 "cyghistory5.dll" v0.0 ts=2003/8/11 7:16 25k 2004/10/12 e:\cygwin\bin\cyghistory6.dll - os=4.0 img=1.0 sys=4.0 "cyghistory6.dll" v0.0 ts=2004/10/12 14:51 991k 2004/07/06 e:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0 "cygiconv-2.dll" v0.0 ts=2004/7/7 2:10 22k 2001/12/13 e:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0 "cygintl-1.dll" v0.0 ts=2001/12/13 17:28 37k 2003/08/10 e:\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0 "cygintl-2.dll" v0.0 ts=2003/8/11 5:50 54k 2004/07/06 e:\cygwin\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0 "cygintl-3.dll" v0.0 ts=2004/7/7 1:51 21k 2001/06/20 e:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0 "cygintl.dll" v0.0 ts=2001/6/21 1:09 22k 2004/10/10 e:\cygwin\bin\cygmenu-8.dll - os=4.0 img=1.0 sys=4.0 "cygmenu-8.dll" v0.0 ts=2004/10/10 16:33 26k 2001/04/25 e:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0 "cygmenu5.dll" v0.0 ts=2001/4/25 13:27 20k 2002/01/09 e:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0 "cygmenu6.dll" v0.0 ts=2002/1/9 14:03 29k 2003/08/09 e:\cygwin\bin\cygmenu7.dll - os=4.0 img=1.0 sys=4.0 "cygmenu7.dll" v0.0 ts=2003/8/9 17:25 74k 2004/10/10 e:\cygwin\bin\cygncurses++-8.dll - os=4.0 img=1.0 sys=4.0 "cygncurses++-8.dll" v0.0 ts=2004/10/10 16:33 156k 2001/04/25 e:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0 "cygncurses++5.dll" v0.0 ts=2001/4/25 13:29 175k 2002/01/09 e:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0 "cygncurses++6.dll" v0.0 ts=2002/1/9 14:03 216k 2004/10/10 e:\cygwin\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0 "cygncurses-8.dll" v0.0 ts=2004/10/10 16:25 226k 2001/04/25 e:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0 "cygncurses5.dll" v0.0 ts=2001/4/25 13:17 202k 2002/01/09 e:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0 "cygncurses6.dll" v0.0 ts=2002/1/9 14:03 224k 2003/08/09 e:\cygwin\bin\cygncurses7.dll - os=4.0 img=1.0 sys=4.0 "cygncurses7.dll" v0.0 ts=2003/8/9 17:24 13k 2004/10/10 e:\cygwin\bin\cygpanel-8.dll - os=4.0 img=1.0 sys=4.0 "cygpanel-8.dll" v0.0 ts=2004/10/10 16:32 15k 2001/04/25 e:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0 "cygpanel5.dll" v0.0 ts=2001/4/25 13:27 12k 2002/01/09 e:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0 "cygpanel6.dll" v0.0 ts=2002/1/9 14:03 19k 2003/08/09 e:\cygwin\bin\cygpanel7.dll - os=4.0 img=1.0 sys=4.0 "cygpanel7.dll" v0.0 ts=2003/8/9 17:24 62k 2003/12/11 e:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0 "cygpcre-0.dll" v0.0 ts=2003/12/12 1:01 63k 2003/04/11 e:\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0 "cygpcre.dll" v0.0 ts=2003/4/11 16:31 9k 2003/12/11 e:\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0 "cygpcreposix-0.dll" v0.0 ts=2003/12/12 1:01 61k 2003/04/11 e:\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0 "cygpcreposix.dll" v0.0 ts=2003/4/11 16:31 1252k 2005/01/27 e:\cygwin\bin\cygperl5_8.dll - os=4.0 img=1.0 sys=4.0 "cygperl5_8.dll" v0.0 ts=2005/1/27 18:17 22k 2002/06/09 e:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0 "cygpopt-0.dll" v0.0 ts=2002/6/9 13:45 108k 2001/06/28 e:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0 "cygreadline4.dll" v0.0 ts=2001/1/7 12:34 148k 2003/08/10 e:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0 "cygreadline5.dll" v0.0 ts=2003/8/11 7:16 144k 2004/10/12 e:\cygwin\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0 "cygreadline6.dll" v0.0 ts=2004/10/12 14:51 171k 2005/04/11 e:\cygwin\bin\cygssl-0.9.7.dll - os=4.0 img=1.0 sys=4.0 "cygssl-0.9.7.dll" v0.0 ts=2005/4/12 2:21 62k 2004/10/10 e:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0 "cygz.dll" v0.0 ts=2004/10/10 12:09 1163k 2005/04/26 e:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2005/4/26 8:26 Cygwin DLL version info: DLL version: 1.5.16 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 128 Shared data: 4 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix: Build date: Mon Apr 25 20:26:35 EDT 2005 Shared id: cygwin1S4 Cygwin Package Information Last downloaded files to: D:\cygwin.20050410 Last downloaded files from: http://ftp-stud.fht-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin Package Version _update-info-dir 00231-1 ash 20040127-1 autoconf 2.59-1 autoconf-devel 2.59-1 autoconf-stable 2.13-5 automake 1.7.9-1 automake-devel 1.9.2-1 automake-stable 1.4p6-2 base-files 3.2-1 base-passwd 2.2-1 bash 2.05b-17 binutils 20041229-1 bzip2 1.0.2-6 coreutils 5.3.0-5 crypt 1.1-1 cygutils 1.2.7-1 cygwin 1.5.16-1 cygwin-doc 1.4-2 diffutils 2.8.7-1 editrights 1.01-1 expat 1.95.8-1 findutils 20041227-1 gawk 3.1.4-3 gcc-core 3.3.3-3 gcc-mingw-core 20040810-1 gdb 20041228-3 gdbm 1.8.3-7 grep 2.5.1a-2 groff 1.18.1-2 gzip 1.3.5-1 less 381-1 libbz2_1 1.0.2-6 libcharset1 1.9.2-1 libdb4.2 4.2.52-1 libgdbm 1.8.0-5 libgdbm-devel 1.8.3-7 libgdbm3 1.8.3-3 libgdbm4 1.8.3-7 libiconv 1.9.2-1 libiconv2 1.9.2-1 libintl 0.10.38-3 libintl1 0.10.40-1 libintl2 0.12.1-3 libintl3 0.14.1-1 libncurses5 5.2-1 libncurses6 5.2-8 libncurses7 5.3-4 libncurses8 5.4-1 libpcre 4.1-1 libpcre0 4.5-1 libpopt0 1.6.4-4 libreadline4 4.1-2 libreadline5 4.3-5 libreadline6 5.0-1 login 1.9-7 m4 1.4.3-1 make 3.80-1 man 1.5o1-2 mingw-runtime 3.7-1 mktemp 1.5-3 ncurses 5.4-1 openssl 0.9.7g-1 perl 5.8.6-4 readline 5.0-1 rxvt 2.7.10-6 sed 4.1.4-1 tar 1.13.25-5 tcltk 20030901-1 termcap 20050421-1 terminfo 5.4_20041009-1 texinfo 4.8-1 vim 6.3-1 w32api 3.2-1 wget 1.9.1-2 which 1.6-1 zlib 1.2.2-1 Use -h to see help about each section ----- Original Message ----- From: "Brian Dessent" To: Sent: Friday, April 29, 2005 9:47 AM Subject: Re: 1.5.16: Filename case sensitivity problem > Zhuang Jianmin wrote: > >> 1. I can "tar jxvf setup-2.457.2.2.tar.bz2" to extract the setup package in the Cygwin environment, it works well, all files can be listed out. By under XP's file explorer, the filename with upper case is showed in a different form, for example, "%4Dakefile.am" but not "Makefile.am" > > Please attach your cygcheck output as requested at > . > > It sounds like you have enabled managed mounts. When you do that, > Cygwin encodes filenames with %nn. This is so that filenames that are > normally forbidden by Windows (such as those that use reserved words > like CON, AUX, etc. or two files with the same name but different case) > can be used with Cygwin programs. Cygwin has to encode the filenames > specially to get around these inherent Windows limitataions. They will > not show up correctly in Explorer because explorer has no idea what a > managed mount is. When you extract the archive with winrar, the %nn > encodings will not be done, and since the directory is mounted in > managed mode, Cygwin will expect to see the encodings, which is why you > get file not found. > > So, the solution is either: > > - Don't use use managed mounts. > - Use managed mounts, but be aware that filenames will look strange to > non-Cygwin programs. > > For most people there is absolutely no need to use managed mounts, and > it appears that you have enabled this feature without knowing how it > works or what it implies. You should not be using this feature if you > don't understand it. However, do not simply disable it now. If you > have created files on a managed mount and then decide to mount those > paths normally, you will find lots of screwed up filenames. To "undo" a > manged mount requires that you copy the entire tree to another path, > because you can't just turn off the managed mode once you've created > files there. > > Brian > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > >