From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.devel Subject: Re: Don't return file names with backslashes from search-path Date: Thu, 14 Aug 2014 18:40:19 -0400 Message-ID: <87fvgysnjg.fsf@yeeloong.lan> References: <831tsjhyzt.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1408056114 21933 80.91.229.3 (14 Aug 2014 22:41:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2014 22:41:54 +0000 (UTC) Cc: guile-devel@gnu.org To: Eli Zaretskii Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Aug 15 00:41:47 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 1XI3iK-0000pQ-Lb for guile-devel@m.gmane.org; Fri, 15 Aug 2014 00:41:44 +0200 Original-Received: from localhost ([::1]:56720 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XI3iK-000723-9U for guile-devel@m.gmane.org; Thu, 14 Aug 2014 18:41:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XI3iA-00071w-Fa for guile-devel@gnu.org; Thu, 14 Aug 2014 18:41:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XI3i4-0006xG-8U for guile-devel@gnu.org; Thu, 14 Aug 2014 18:41:34 -0400 Original-Received: from world.peace.net ([96.39.62.75]:50343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XI3i3-0006ww-RA; Thu, 14 Aug 2014 18:41:28 -0400 Original-Received: from c-24-62-95-23.hsd1.ma.comcast.net ([24.62.95.23] helo=yeeloong.lan) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1XI3ht-0000Le-3n; Thu, 14 Aug 2014 18:41:17 -0400 In-Reply-To: <831tsjhyzt.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 14 Aug 2014 18:28:22 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 96.39.62.75 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:17339 Archived-At: 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. Thanks! Mark