From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Thomas Morley Newsgroups: gmane.lisp.guile.user Subject: guile can't find a chinese named file Date: Sun, 27 Nov 2016 12:58:03 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=94eb2c122e3453d55a05424711ae X-Trace: blaine.gmane.org 1480247907 10623 195.159.176.226 (27 Nov 2016 11:58:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 27 Nov 2016 11:58:27 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Nov 27 12:58:24 2016 Return-path: Envelope-to: guile-user@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 1cAy6B-0002N0-Nz for guile-user@m.gmane.org; Sun, 27 Nov 2016 12:58:23 +0100 Original-Received: from localhost ([::1]:53869 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cAy6F-0003he-JI for guile-user@m.gmane.org; Sun, 27 Nov 2016 06:58:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cAy5u-0003hM-2B for guile-user@gnu.org; Sun, 27 Nov 2016 06:58:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cAy5t-0003KH-Dd for guile-user@gnu.org; Sun, 27 Nov 2016 06:58:06 -0500 Original-Received: from mail-ua0-x22f.google.com ([2607:f8b0:400c:c08::22f]:33320) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cAy5t-0003KB-9M for guile-user@gnu.org; Sun, 27 Nov 2016 06:58:05 -0500 Original-Received: by mail-ua0-x22f.google.com with SMTP id 20so117406182uak.0 for ; Sun, 27 Nov 2016 03:58:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=3DGsRyNXC2PmCxRmXccScC385qZGTNb9g3tx+NJ33TQ=; b=rY64T5RmseDsi15DdzjXr5or4l5/hTRD1yosgsprZezctA1EdL1IdAbx1IVK/TU16a Ffuk6Hswg/lwqK/NqwXFzHCt5bxyL2BW/hojFIwtWgObMDPIdx+2U77vrrnS7TUcGEAH dXhMt66cb88uzF2pjLyZ5a2LP3cZE0Ka22hKFBwN8o2wJ2/PxXY1tRB34nlJ+r0uzpj6 fVJvkyfHSKePh6JT0NXj0RBEPj21VIs+0RNWIR3C1GF8Xx8OtdGhW3X/eRCz3hbCa7m2 bGHNLGBZwfJL9AMujs49e2xyYJoOnA08AegyT3llFWl2Z8UVvopLE9v03zxo1NcjcgPJ tqow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=3DGsRyNXC2PmCxRmXccScC385qZGTNb9g3tx+NJ33TQ=; b=dsiZREgZQWv+CmJV/sYc5qE+LjwvvLGTHr9+hGl+kRDx5ngn20oteAJtf0MTQQtW2i +iYdlKM+AOfZuYSzc2Osu767W9DPCykZ3bONhhLSrKKKvkRUSElzunfvoMGHXI5rIK9m YYWllwzWtZgiocNAuXk1DpvVi8TUwYBq8mFTClEUfb/d79F/aeJtihN41FIzzEFvHaF/ dUZTAmFoMMYcCxCDxpvZ94yI3Fi84ebabhyMRzqg7gisC9ri55YoQCYEhEESdGZVIsZl Li5pEvufQFf7m+uQr734Sh7Y/X+oGGFDRhFrE+P6o1Hd5JfJCvBikKlm9L9JPa85J9M8 XW4w== X-Gm-Message-State: AKaTC02ZckvP95McyOdxM8oy2EX02IPOS8pKjMzGHqMgRacLOfeCGniG4O6M1SwV8ug3AMmDsp2sx7TX48Z4LQ== X-Received: by 10.176.6.74 with SMTP id f68mr12805246uaf.37.1480247884364; Sun, 27 Nov 2016 03:58:04 -0800 (PST) Original-Received: by 10.103.143.207 with HTTP; Sun, 27 Nov 2016 03:58:03 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c08::22f X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:13008 Archived-At: --94eb2c122e3453d55a05424711ae Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all, a chinese user came up with a weird problem. He wants to process the string retrieved by (command-line) further, in his file-name he used some chinese characters. I tracked it down to the attached minimal example. With guile-2.0.13 I get: guile filename_=E5=90=8D=E5=AD=97.scm ;;; Stat of /home/hermann/Desktop/filename_??.scm failed: ;;; ERROR: In procedure stat: No such file or directory: "/home/hermann/Desktop/filename_\u540d\u5b57.scm" Backtrace: In ice-9/boot-9.scm: 160: 8 [catch #t # ...] In unknown file: ?: 7 [apply-smob/1 #] In ice-9/boot-9.scm: 66: 6 [call-with-prompt prompt0 ...] In ice-9/eval.scm: 432: 5 [eval # #] In ice-9/boot-9.scm: 2404: 4 [save-module-excursion #] 4058: 3 [#] 1727: 2 [%start-stack load-stack ...] 1732: 1 [#] In unknown file: ?: 0 [primitive-load "/home/hermann/Desktop/filename_\u540d\u5b57.scm"] ERROR: In procedure primitive-load: ERROR: In procedure open-file: No such file or directory: "/home/hermann/Desktop/filename_\u540d\u5b57.scm" What to do to make it work? I messed around setting locales, to no avail so far. Btw, the same with guile-1.8: guile-1.8 filename_=E5=90=8D=E5=AD=97.scm ("filename_=EF=BF=BD\x90\x8d=E5=AD=97.scm") (filename_=E5=90=8D=E5=AD=97.scm) The string is strange, but at least the file is found. Cheers, Harm --94eb2c122e3453d55a05424711ae Content-Type: text/x-scheme; charset=US-ASCII; name="=?UTF-8?B?ZmlsZW5hbWVf5ZCN5a2XLnNjbQ==?=" Content-Disposition: attachment; filename="=?UTF-8?B?ZmlsZW5hbWVf5ZCN5a2XLnNjbQ==?=" Content-Transfer-Encoding: base64 X-Attachment-Id: f_iw0kz25y0 KG5ld2xpbmUpCih3cml0ZSAoY29tbWFuZC1saW5lKSkKCihuZXdsaW5lKQood3JpdGUgKG1hcCBz dHJpbmctPnN5bWJvbCAoY29tbWFuZC1saW5lKSkpCg== --94eb2c122e3453d55a05424711ae--