From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: convert-standard-filename Date: Mon, 8 Aug 2011 12:37:56 +0200 Message-ID: References: <83vcufaaqf.fsf@gnu.org> <83hb5vvwdp.fsf@gnu.org> <83sjpczk76.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1312799910 5988 80.91.229.12 (8 Aug 2011 10:38:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2011 10:38:30 +0000 (UTC) Cc: sds@gnu.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 08 12:38:25 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QqNE0-0003eC-OH for ged-emacs-devel@m.gmane.org; Mon, 08 Aug 2011 12:38:24 +0200 Original-Received: from localhost ([::1]:45550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqNE0-0006sf-AK for ged-emacs-devel@m.gmane.org; Mon, 08 Aug 2011 06:38:24 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqNDx-0006oT-V9 for emacs-devel@gnu.org; Mon, 08 Aug 2011 06:38:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqNDw-0003on-MZ for emacs-devel@gnu.org; Mon, 08 Aug 2011 06:38:21 -0400 Original-Received: from mail-ew0-f41.google.com ([209.85.215.41]:44718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqNDt-0003oO-E7; Mon, 08 Aug 2011 06:38:17 -0400 Original-Received: by ewy9 with SMTP id 9so378007ewy.0 for ; Mon, 08 Aug 2011 03:38:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=20/mhTolwtHAh6FmegzFf3oyNfJgZpvf+HOy5fQDzYE=; b=KuLH3/fo7PHWBatHpL8/CeoTFE/sL7CPzvBAJPzLkEeHsEUGT51UCyCdHMPQV79HO0 aIlnuy0L0biHwOxyVOkI5TBdS8iRMTu0yywbYKhgqHY3yUhcjSliHpA0EZGlb4obWD86 Ytjog+FiCE5VqKyGkSsp5AgJyhFLqgbsQvAeg= Original-Received: by 10.213.15.9 with SMTP id i9mr320374eba.11.1312799896135; Mon, 08 Aug 2011 03:38:16 -0700 (PDT) Original-Received: by 10.213.4.71 with HTTP; Mon, 8 Aug 2011 03:37:56 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.215.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:143012 Archived-At: On Mon, Aug 8, 2011 at 06:38, Eli Zaretskii wrote: >> From: Lennart Borgman >> Date: Mon, 8 Aug 2011 06:26:28 +0200 >> Cc: monnier@iro.umontreal.ca, sds@gnu.org, emacs-devel@gnu.org >> >> On Mon, Aug 8, 2011 at 06:19, Eli Zaretskii wrote: >> > >> >> Are there any cases were the result would be ambigious? >> > >> > The case of "c:foobar", as pointed out by Stefan earlier in this >> > thread. =C2=A0If it's taken as a local absolute file name, then on Win= dows >> > there's no need to do anything about it. =C2=A0If it is taken as a Pos= ix >> > relative file name, the colon should be replaced with some other >> > character. >> >> I see. But on Windows it could hardly be a Posix relative file name, >> or could it? > > It can't, so convert-standard-filename should replace the colon. > That's what convert-standard-filename does: takes a Posix file name > and produces a file name usable on non-Posix filesystems. And when does such a situation arise? (I.e. when does it happen that a Posix file name looking like a Windows file name needs to be converted to a Windows file name.)