From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Vicente Vera Newsgroups: gmane.lisp.guile.bugs Subject: bug#22229: Error when running script from directory with non-ASCII characters Date: Thu, 11 Aug 2016 14:53:25 -0300 Message-ID: References: <8760rcrg58.fsf@pobox.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1470938064 28843 195.159.176.226 (11 Aug 2016 17:54:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 11 Aug 2016 17:54:24 +0000 (UTC) Cc: 22229@debbugs.gnu.org To: Andy Wingo Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Aug 11 19:54:16 2016 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXuBK-0007B1-7c for guile-bugs@m.gmane.org; Thu, 11 Aug 2016 19:54:14 +0200 Original-Received: from localhost ([::1]:49978 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXuBH-0000O2-9K for guile-bugs@m.gmane.org; Thu, 11 Aug 2016 13:54:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXuBB-0000Nv-Dr for bug-guile@gnu.org; Thu, 11 Aug 2016 13:54:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXuB8-0008Rs-93 for bug-guile@gnu.org; Thu, 11 Aug 2016 13:54:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56585) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXuB8-0008Rd-4M for bug-guile@gnu.org; Thu, 11 Aug 2016 13:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bXuB7-0008Uk-UC for bug-guile@gnu.org; Thu, 11 Aug 2016 13:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vicente Vera Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 11 Aug 2016 17:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22229 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 22229-submit@debbugs.gnu.org id=B22229.147093801332618 (code B ref 22229); Thu, 11 Aug 2016 17:54:01 +0000 Original-Received: (at 22229) by debbugs.gnu.org; 11 Aug 2016 17:53:33 +0000 Original-Received: from localhost ([127.0.0.1]:54297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXuAf-0008U1-0H for submit@debbugs.gnu.org; Thu, 11 Aug 2016 13:53:33 -0400 Original-Received: from mail-oi0-f53.google.com ([209.85.218.53]:36230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXuAd-0008To-TW for 22229@debbugs.gnu.org; Thu, 11 Aug 2016 13:53:32 -0400 Original-Received: by mail-oi0-f53.google.com with SMTP id f189so4029287oig.3 for <22229@debbugs.gnu.org>; Thu, 11 Aug 2016 10:53:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=n+ZTTsrxSSDAzKP2wipnlUTWsfYBvLCIiFT1GgzrIiU=; b=j+JTNSxmuelxgPjpl5zJmau3rMKihj5k3jhWPoPCziA+9jACUPytNNETUDusC0sBIT skWRVkBqr1l6j5osN2P/OR7lLcEBh3xLPbUCMTyhJn4D7cqoJ3lXGNEbpJKEeLPU+HFc OaVbqG/ECLANCu+3hm67YJ9q/nugumT1839V3IPGGguL/acaFCh3lVYsfmmebDvgVzKO axq6NTW1jiDE36hfSipgxpjqCD+l+/rc2FiiRp/RlrwCqZGRf8+Dx/007haijEEmRYtG QQRxRfRTPKMd7/RBYuKWyqxQPlAbYr/OZEjE7Gm2G5Qi2g0X+pMoTlbbgUuq2V1z7zoy XN6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=n+ZTTsrxSSDAzKP2wipnlUTWsfYBvLCIiFT1GgzrIiU=; b=cxYLjeEW05PoxBq5rqBK+dOBBid77uQ2u4Xb1DYZs37dVQ4Q8tAz9UqRgeES+mgu3g XR/RKef5pa+jf6fOu0qRoD5uTrnZfSjcqO1aQHKn6P8sxbhIoJuoeMipAZHAGFSy0acK OZIOsj64/jCp803ZLr6Tfuw5hSbXQCVUoYeSIn7O8gi7tmxO3znGQrw5dBy5d818jgBq gujmbdgkSNwJ6XbtVAT0NOvSh8iaNCMFsljvOSxh5AwH0pUFi3SgyCnM63NmbhxSLfhN wrf3MGqqNOmazLtARvDV1xAfnzRVUwBVCcJGr0m/yFiGvEfwuyvoVSzsvHbmmzWr2162 iomg== X-Gm-Message-State: AEkoouubz6etsFCFYYdir9qDqB30C89lrXrzcMUWfMqLPE6yKjFbJ/xGn8hBfktx3NrPjROeGFpxjFUF8jMUhw== X-Received: by 10.157.7.229 with SMTP id 92mr2864796oto.133.1470938006131; Thu, 11 Aug 2016 10:53:26 -0700 (PDT) Original-Received: by 10.157.61.6 with HTTP; Thu, 11 Aug 2016 10:53:25 -0700 (PDT) In-Reply-To: <8760rcrg58.fsf@pobox.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:8377 Archived-At: Hello. Thanks for your reply. Executing the script with GUILE_INSTALL_LOCALE=3D1 works as expected. 2016-08-07 7:07 GMT-04:00 Andy Wingo : > On Thu 24 Dec 2015 02:46, Vicente Vera writes: > >> Guile chokes when running a .scm script from a directory with >> non-ASCII characters. >> >> A simple test script: >> >> ------------------- >> #!/usr/bin/guile -s >> !# >> ;; coding: utf-8 >> (display "hey") >> (newline) >> ------------------- >> >> $ cd ~/c=C3=B3digo/ >> $ ./test.scm >> ;;; Stat of /home/me/c??digo/./test.scm failed: >> ;;; ERROR: In procedure stat: No such file or directory: > > Weird :) > > It's fixed in Guile 2.2 because Guile 2.2 installs the locale > automatically; see GUILE_INSTALL_LOCALE here: > > https://www.gnu.org/software/guile/manual/html_node/Environment-Variabl= es.html > > I don't know what to do about Guile 2.0 though. And of course it's > possible even with Guile 2.2 to be in a directory whose name is not > valid in the current encoding. > > Though I would like to fix it nicely, I suspect that given the proximity > of 2.2.0, we'll just punt on 2.0 :( A bit frustrating though. > > Andy