From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.lisp.guile.devel Subject: Re: Don't return file names with backslashes from search-path Date: Fri, 15 Aug 2014 09:50:07 +0300 Message-ID: <83r40igsbk.fsf@gnu.org> References: <831tsjhyzt.fsf@gnu.org> <87fvgysnjg.fsf@yeeloong.lan> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1408085735 31112 80.91.229.3 (15 Aug 2014 06:55:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Aug 2014 06:55:35 +0000 (UTC) Cc: guile-devel@gnu.org To: Mark H Weaver Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Aug 15 08:55:29 2014 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XIBQ6-00005S-OT for guile-devel@m.gmane.org; Fri, 15 Aug 2014 08:55:26 +0200 Original-Received: from localhost ([::1]:57780 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIBQ5-00022n-MT for guile-devel@m.gmane.org; Fri, 15 Aug 2014 02:55:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIBPs-0001ub-Gr for guile-devel@gnu.org; Fri, 15 Aug 2014 02:55:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XIBPm-0001Sl-4h for guile-devel@gnu.org; Fri, 15 Aug 2014 02:55:12 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:48263) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIBPl-0001R7-Si for guile-devel@gnu.org; Fri, 15 Aug 2014 02:55:06 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NAC008005F87U00@a-mtaout22.012.net.il> for guile-devel@gnu.org; Fri, 15 Aug 2014 09:50:03 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NAC007BO5NFXB40@a-mtaout22.012.net.il>; Fri, 15 Aug 2014 09:50:03 +0300 (IDT) In-reply-to: <87fvgysnjg.fsf@yeeloong.lan> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:17340 Archived-At: > From: Mark H Weaver > Cc: guile-devel@gnu.org > Date: Thu, 14 Aug 2014 18:40:19 -0400 > > Eli Zaretskii writes: > > > This small patch plugs yet another hole through which Guile on Windows > > could generate file names with backslashes. > > > > OK to commit? > > > > --- libguile/load.c~2 2014-07-03 09:58:29 +0300 > > +++ libguile/load.c 2014-08-14 17:28:26 +0300 > > @@ -657,7 +657,8 @@ search_path (SCM path, SCM filename, SCM > > if (stat (buf.buf, stat_buf) == 0 > > && ! (stat_buf->st_mode & S_IFDIR)) > > { > > - result = scm_from_locale_string (buf.buf); > > + result = > > + scm_from_locale_string (scm_i_mirror_backslashes (buf.buf)); > > goto end; > > } > > } > > Okay, please push. Done.