From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH 2/5] [mingw]: Have compiled-file-name produce valid names. Date: Mon, 02 May 2011 23:58:28 +0200 Message-ID: References: <1297784103-18322-1-git-send-email-janneke-list@xs4all.nl> <1297784103-18322-3-git-send-email-janneke-list@xs4all.nl> <87r58gzuoy.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 1304373529 19125 80.91.229.12 (2 May 2011 21:58:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 May 2011 21:58:49 +0000 (UTC) Cc: Eli Barzilay , guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon May 02 23:58:44 2011 Return-path: Envelope-to: guile-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 1QH18d-0002xP-9l for guile-devel@m.gmane.org; Mon, 02 May 2011 23:58:43 +0200 Original-Received: from localhost ([::1]:55046 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QH18c-0000VW-EW for guile-devel@m.gmane.org; Mon, 02 May 2011 17:58:42 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QH18Y-0000VQ-QN for guile-devel@gnu.org; Mon, 02 May 2011 17:58:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QH18X-000488-Jn for guile-devel@gnu.org; Mon, 02 May 2011 17:58:38 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:61787 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QH18X-000482-HQ; Mon, 02 May 2011 17:58:37 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 3800F57E2; Mon, 2 May 2011 18:00:40 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=8tVkaXRb3x64 8uHvv92xXooCcsY=; b=MwreHPEmKdPuJ1rLdh5RYXxOzl6twF0ZElemKpbp8CSX GUxcqyBmqsbXIRWhwQUyhlPCcB28vxc9didNOsgnQA9KQFzJoAPet0DD9tMCWOTc nSQbgg/WGLxU9wSe1BkYI0pWplGBlepeWELS2mPRphWXK1fqghd/hej0T0w4hNo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=PVQt72 3sXg+BbDj1YO5+s7is57DgWfwwIUQyrOtQULC8u0hcYw2hy9HIK2tf619vJW9/tY eTYQ8zqPqXZ1DUTXSazHdmiQI8O7Y75V+Plk0qQ9fpsbzzNQ9RRylCvZEMT9Vjhn sgOyWXJA49wvehSdndM8XvTRBzk3BEmjip0ns= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 1459B57DB; Mon, 2 May 2011 18:00:37 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 1BE1D57DA; Mon, 2 May 2011 18:00:33 -0400 (EDT) In-Reply-To: <87r58gzuoy.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Mon, 02 May 2011 22:58:05 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 9C62323E-7507-11E0-A669-E8AB60295C12-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:12407 Archived-At: On Mon 02 May 2011 22:58, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Andy Wingo writes: > >> Basically I think the plan should be to add scm_from_locale_path, >> scm_from_raw_path, etc to filesys.[ch], and change any >> pathname-accepting procedure in Guile to accept path objects, producing >> them from strings when given strings, and pass the bytevector >> representation to the raw o/s procedures like `open' et al. > > Seems to like a disjoint type =E2=80=9Cjust for Windows=E2=80=9D would be= overkill, no? Maybe you're right; hummm! I have added a kind racketeer on Cc; perhaps if he has time, he might have some thoughts in this regard. :-) > Bigloo has just one variable, =E2=80=98file-separator=E2=80=99, which is = either #\/ or > #\\ [1]. The funny thing is that this doesn't matter at all. Well, I mean that it's valid to construct pathnames with / as the separator on Windows, as / and \ are equivalent there. I still think that we need at least the ability to pass a bytevector as a path name, on GNU systems; and that if we can do so, then any routine that needs to deal with a path name would then need to deal in byte vectors in addition to strings, and at that point perhaps it is indeed useful to have a path library. > Vicinities in SLIB/SCM are similar, with =E2=80=98vicinity:suffix?=E2=80= =99 > abstracting over slash vs. backslash [2]. I=E2=80=99m not sure how they = handle > MS-DOS volume names. I don't think that they do handle volume names; at least, from what I could see in the API description there. Good questions! A --=20 http://wingolog.org/