From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.user Subject: Re: guile can't find a chinese named file Date: Tue, 31 Jan 2017 06:16:54 +0000 (UTC) Message-ID: <271308316.330377.1485843414920@mail.yahoo.com> References: <874m0gd3z4.fsf@gnu.org> <87wpdc8rx7.fsf@elektro.pacujo.net> <87poj4r04c.fsf@fencepost.gnu.org> <87k29c8q3b.fsf@elektro.pacujo.net> <87h94gqz34.fsf@fencepost.gnu.org> <87fuk0ctve.fsf@elektro.pacujo.net> <878tpsqtzl.fsf@fencepost.gnu.org> <83tw8gwffh.fsf@gnu.org> <8737g0qsp8.fsf@fencepost.gnu.org> <83sho0wdgm.fsf@gnu.org> <83poj4wc8n.fsf@gnu.org> <1726997629.41537.1485808958146@mail.yahoo.com> <83mve7x5v3.fsf@gnu.org> Reply-To: Mike Gran NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1485843448 27734 195.159.176.226 (31 Jan 2017 06:17:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2017 06:17:28 +0000 (UTC) Cc: "guile-user@gnu.org" , "dak@gnu.org" To: Eli Zaretskii Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jan 31 07:17:24 2017 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 1cYRkp-0006wd-Pa for guile-user@m.gmane.org; Tue, 31 Jan 2017 07:17:23 +0100 Original-Received: from localhost ([::1]:36325 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYRkt-00021g-Kg for guile-user@m.gmane.org; Tue, 31 Jan 2017 01:17:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYRkX-00021b-1n for guile-user@gnu.org; Tue, 31 Jan 2017 01:17:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYRkU-0002Oe-8J for guile-user@gnu.org; Tue, 31 Jan 2017 01:17:05 -0500 Original-Received: from nm16-vm6.bullet.mail.ne1.yahoo.com ([98.138.91.109]:44231) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1cYRkU-0002O8-1g for guile-user@gnu.org; Tue, 31 Jan 2017 01:17:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1485843419; bh=UV64fY18aVCeWeuBfuc8II2aZZbSM76ic7iCDz6/SWY=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=T2Qkt4FtjER/SMtj62gEbMLGNgw5q6MvHqX1dhsV7QwT1kBRsLfL5HNbB0StKibqrTEwhJHiiXK9KO6pdVDBv2vhpi2m+TcYMFj/fnUgrC4rFclLwJE7tvixCF1wb6gNxeZYy7IBDzK+kdQ2j9J2GvrIbkw0qWJd5Ck/zvx+jYhKvOSluRnnl36xZrmT3ae7Zkkk7TCeXB2NypiePTx7Yt+ooYzQ5dgZl87HLr3UBO38KXXYIj9D4mQ3ZtocZEJGIkurjn/GOHHOmSxDOE++Z3znsu6xojeqiCnVNdJsrZyKHBIMGQfhTUdSyWahOc6DDXsSHbXxS41KHb1UwQGUOg== Original-Received: from [98.138.100.103] by nm16.bullet.mail.ne1.yahoo.com with NNFMP; 31 Jan 2017 06:16:59 -0000 Original-Received: from [98.138.89.175] by tm102.bullet.mail.ne1.yahoo.com with NNFMP; 31 Jan 2017 06:16:59 -0000 Original-Received: from [127.0.0.1] by omp1031.mail.ne1.yahoo.com with NNFMP; 31 Jan 2017 06:16:59 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 800550.66807.bm@omp1031.mail.ne1.yahoo.com X-YMail-OSG: gfRMTsoVM1krhrSc_Tzu4Mqti7NZtsY8egXTBbLOx8ggCxTEqLEPELvBwYyslwg bCGLhDEAaWV6iFX3wMKDPm3eTwz7OLrjx_I_fmjmbUQRna2rSe0tjh02ZlHYY1HX8LHZlQHpi9Dn o6WTwSw5rfWuYsXGKvNQhoO.3tF1A748IZraoeHlFYL4ihGkeW0exc03qUP1aop.Yrh612ur7C7i mUY0zpMeYSSfWXzmfzzat9rxXHD2YByMy1A9yy9RasZEr00Wo.U4CpYHD8k9nGDMqJ_iMDZk_uw6 1tjZ1vyqvtv9K8Iuh6cJXYxQygJwIZyAs1kQbe6FpVVQXo_b2Os.Szr9m5djs0xwXzz7LlmgLKcs sYnDbRCzRN66nhN7bdeRogL1.ld5oV_ROK7vDo_Ti6hQlOMvq2CWoPVJ4BzlplYo4RmWBo3JY3A0 WiWIjnx3y_B0jFV67PKexHa1uct_fzSufe4F00UmnE1IXNSaMAa054B7LYiiXpSr0_IOwUdyd02i r6GZhbXQNO.bWUiH4131lJO5H50dt.kNjgf9fnwyq45J5keKXjxMwQCaVlR67 Original-Received: from jws200127.mail.ne1.yahoo.com by sendmailws102.mail.ne1.yahoo.com; Tue, 31 Jan 2017 06:16:59 +0000; 1485843419.423 In-Reply-To: <83mve7x5v3.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 98.138.91.109 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:13157 Archived-At: On Monday, January 30, 2017 7:31 PM, Eli Zaretskii wrote: > Latin-1 has holes in the 0..255 range, so it isn't very appropriate in > this situation. I was being imprecise. Internally, in Guile, if a string consists of Unicode codepoints zero to 255, it is stored as what Guile calls a "narrow" string. This is still true in 2.1.x, I think. The first 256 codepoints of Unicode consists of C0 controls, the US-ASCII set, the C1 controls from ECMA-48, and the right hand part of Latin-1. In early 2.0.x Guile versions, before setlocale was called, Guile would map unspecified 8-bit clean file paths to this 8-bit encoding that consisted of the first 256 codepoints in the Unicode standard. > Emacs stores all environment variables in their original > locale-specific encoding, as unibyte strings, and only decodes them > when they are actually used or handed to Lisp. Another method is that of Perl6 where all strings are utf8. In Perl6 on MoarVM it assumes all environmental variables and strings are UTF-8, unless otherwise specified, but it uses their UTF-8-c8 encoding that can encode/decode invalid UTF-8.