From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6018 invoked by alias); 22 Apr 2002 19:18:55 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 6009 invoked from network); 22 Apr 2002 19:18:53 -0000 Received: from unknown (HELO mail1.home.nl) (213.51.129.225) by sources.redhat.com with SMTP; 22 Apr 2002 19:18:53 -0000 Received: from moolenaar.net ([212.120.77.84]) by mail1.home.nl (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20020422191847.GWNE1365.mail1.home.nl@moolenaar.net>; Mon, 22 Apr 2002 21:18:47 +0200 Received: from masaka.moolenaar.net (localhost.moolenaar.net [127.0.0.1]) by moolenaar.net (8.11.6/8.11.1) with ESMTP id g3MJIev02890; Mon, 22 Apr 2002 21:18:40 +0200 (CEST) (envelope-from Bram@moolenaar.net) Message-Id: <200204221918.g3MJIev02890@moolenaar.net> To: Corinna Vinschen Cc: cygwin@cygwin.com Cc: vim-dev@vim.org Subject: Re: small inter-operability patch for vim 6.1.2 for Cygwin In-Reply-To: <20020422211121.B7762@cygbert.vinschen.de> From: Bram Moolenaar MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: Mon, 22 Apr 2002 12:31:00 -0000 X-SW-Source: 2002-04/txt/msg01222.txt.bz2 Corinna Vinschen wrote: > On Mon, Apr 22, 2002 at 08:35:50PM +0200, Bram Moolenaar wrote: > > I'm quite sure this is not a good solution. It's just waiting to fail > > in another place. The Unix code just isn't prepared for backslashes in > > a file name to be path separators, they are seen as escaping the special > > meaning of characters. > > > > Why not add something at the start of main() to change backslashes to > > forward slashes? Or better: Isn't there a cygwin trick for this > > already? > > Sure: > > #include > > cygwin_conv_to_posix_path(const char *win_path, char *posix_path); That sounds like something we can use. But lacking the manual page it's a bit difficult to know exactly how to call it. Also, can this function be used when the path is already a "posix" path? Or do we need a test whether this function needs to be called (a backslash being present). Actually, it would help a lot if someone with Cygwin installed can look into this and test a few things. -- FIRST HEAD: Oh! quick! get the sword out I want to cut his head off. THIRD HEAD: Oh, cut your own head off. SECOND HEAD: Yes - do us all a favour. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org /// -- 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/