From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH 2/5] [mingw]: Have compiled-file-name produce valid names. Date: Mon, 02 May 2011 22:58:05 +0200 Message-ID: <87r58gzuoy.fsf@gnu.org> References: <1297784103-18322-1-git-send-email-janneke-list@xs4all.nl> <1297784103-18322-3-git-send-email-janneke-list@xs4all.nl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1304369911 29627 80.91.229.12 (2 May 2011 20:58:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 May 2011 20:58:31 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon May 02 22:58:27 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 1QH0CI-0002Sn-5o for guile-devel@m.gmane.org; Mon, 02 May 2011 22:58:26 +0200 Original-Received: from localhost ([::1]:57198 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QH0CH-0001fm-Qg for guile-devel@m.gmane.org; Mon, 02 May 2011 16:58:25 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:40466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QH0CF-0001fF-23 for guile-devel@gnu.org; Mon, 02 May 2011 16:58:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QH0CD-00034r-TO for guile-devel@gnu.org; Mon, 02 May 2011 16:58:23 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:37598) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QH0CD-00034P-Nt for guile-devel@gnu.org; Mon, 02 May 2011 16:58:21 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QH0CB-0002PF-Ew for guile-devel@gnu.org; Mon, 02 May 2011 22:58:19 +0200 Original-Received: from reverse-83.fdn.fr ([80.67.176.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 May 2011 22:58:19 +0200 Original-Received: from ludo by reverse-83.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 May 2011 22:58:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: reverse-83.fdn.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 13 =?iso-8859-1?Q?Flor=E9al?= an 219 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.110017 (No Gnus v0.17) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:BNmBSr5lPy8ajQQdog0e9q25F3Y= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:12406 Archived-At: Hi, 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 “just for Windows” would be overkill, no? MIT/GNU Scheme has something this overkill [0]. Bigloo has just one variable, ‘file-separator’, which is either #\/ or #\\ [1]. Vicinities in SLIB/SCM are similar, with ‘vicinity:suffix?’ abstracting over slash vs. backslash [2]. I’m not sure how they handle MS-DOS volume names. Thanks, Ludo’. [0] http://www.gnu.org/software/mit-scheme/documentation/mit-scheme-ref/Pathnames.html [1] http://www-sop.inria.fr/mimosa/fp/Bigloo/doc/bigloo-7.html#System-Programming [2] http://people.csail.mit.edu/jaffer/slib_2.html