From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.lisp.guile.user Subject: Re: guile can't find a chinese named file Date: Tue, 31 Jan 2017 05:31:28 +0200 Message-ID: <83mve7x5v3.fsf@gnu.org> 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1485833537 24014 195.159.176.226 (31 Jan 2017 03:32:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2017 03:32:17 +0000 (UTC) Cc: guile-user@gnu.org, dak@gnu.org To: Mike Gran Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jan 31 04:32:14 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 1cYPAx-0005wO-Lg for guile-user@m.gmane.org; Tue, 31 Jan 2017 04:32:11 +0100 Original-Received: from localhost ([::1]:35952 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYPB1-0004QA-9p for guile-user@m.gmane.org; Mon, 30 Jan 2017 22:32:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYPAd-0004Q3-C0 for guile-user@gnu.org; Mon, 30 Jan 2017 22:31:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYPAZ-0004ai-ET for guile-user@gnu.org; Mon, 30 Jan 2017 22:31:51 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYPAZ-0004ae-Bc; Mon, 30 Jan 2017 22:31:47 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4539 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cYPAY-0005MW-84; Mon, 30 Jan 2017 22:31:46 -0500 In-reply-to: <1726997629.41537.1485808958146@mail.yahoo.com> (message from Mike Gran on Mon, 30 Jan 2017 20:42:38 +0000 (UTC)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:13155 Archived-At: > Date: Mon, 30 Jan 2017 20:42:38 +0000 (UTC) > From: Mike Gran > Cc: "guile-user@gnu.org" > > Earlier in the 2.0.x release series, Guile had a hack where it started > up in a Latin-1 encoding, which would be capable of storing any > 8-bit string of bytes, even if they weren't Latin-1. Latin-1 has holes in the 0..255 range, so it isn't very appropriate in this situation. > And what was supposed to happen after setlocale was called? What Emacs does is explicitly decode any variable produced until that moment that is known to hold unibyte strings. > As an aside, GTK and GLIB based applications often use a method where > you may need to set the environment variable G_FILENAME_ENCODING > if your filename encoding is different from your locale encoding. > GTK/GLIB also likes to store strings internally as UTF-8, and will > convert to UTF-8 from either the locale or the G_FILENAME_ENCODING- > specified encoding. 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.