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 Message-ID: <3D3DBFF0.1070704@cox.net> Date: Tue, 23 Jul 2002 16:43:28 -0400 From: "David A. Cobb" Organization: CoxNet User User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020718 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Randall R Schulz CC: cygwin AT cygwin DOT com Subject: Re: Valid file-name characters References: <3D3999D5 DOT 2080904 AT cox DOT net> <91341174502 DOT 20020722110344 AT logos-m DOT ru> <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020722174321 DOT 02b7a340 AT pop3 DOT cris DOT com> Content-Type: multipart/related; boundary="------------080008040409040108070403" --------------080008040409040108070403 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Randall R Schulz wrote: > At 16:18 2002-07-22, David A. Cobb wrote: > >> ... >> >> It only makes sense to me to escape characters that are a real >> problem ( vs. a nuisance ) for one system or the other. The ones I'm >> sure of in Windoz are the colon and slashes. Would Linux, for >> example, allow a file with (shell-escapd) backslashes? There are >> others, but I haven't done the research yet. > > > See the attached GIF for Windows' reproach. If you don't care to do > that, I'll transcribe: I have plenty of reproaches for them too! Thanks, I meant to conjure up that box. I'm thinking of this as the _last_ step before sending a windowized pathname to the OS -- encode any of the char's shown except the PATH-SEP. Actually, both slashes are verboten. Coming back the other way I'd be tempted to be more permissive and try decoding any %XY | X in {0..9+A..F), Y in (0..9+A..F) but that may be an evil temptation. Reversing only what we ourselves do is far safer. > Randall Schulz > Mountain View, CA USA > > ------------------------------------------------------------------------ > >------------------------------------------------------------------------ > >-- >Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple >Bug reporting: http://cygwin.com/bugs.html >Documentation: http://cygwin.com/docs.html >FAQ: http://cygwin.com/faq/ > -- David A. Cobb, Software Engineer, Public Access Advocate "By God's Grace I am a Christian man, by my actions a great sinner." -- The Way of a Pilgrim; R. M. French, tr. Life is too short to tolerate crappy software. . --------------080008040409040108070403--