From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: bug#23754: Guile doesn't show correct character while interpreting script file Date: Mon, 11 Jul 2016 18:20:51 +0200 Message-ID: <87d1mk404c.fsf@pobox.com> References: <87wpksppi8.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1468254089 999 80.91.229.3 (11 Jul 2016 16:21:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2016 16:21:29 +0000 (UTC) Cc: 23754-done@debbugs.gnu.org, Ws Hu To: Alex Kost Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Jul 11 18:21:19 2016 Return-path: Envelope-to: guile-bugs@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 1bMdxO-0006hv-TD for guile-bugs@m.gmane.org; Mon, 11 Jul 2016 18:21:19 +0200 Original-Received: from localhost ([::1]:34657 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMdxN-0004Ay-Sm for guile-bugs@m.gmane.org; Mon, 11 Jul 2016 12:21:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMdxD-00042P-Ej for bug-guile@gnu.org; Mon, 11 Jul 2016 12:21:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMdx8-0004YA-Co for bug-guile@gnu.org; Mon, 11 Jul 2016 12:21:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34731) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMdx8-0004Y1-79 for bug-guile@gnu.org; Mon, 11 Jul 2016 12:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bMdx8-0006KV-2h for bug-guile@gnu.org; Mon, 11 Jul 2016 12:21:02 -0400 Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-To: bug-guile@gnu.org Resent-Date: Mon, 11 Jul 2016 16:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 23754 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Mail-Followup-To: 23754@debbugs.gnu.org, wingo@pobox.com, exprosic@gmail.com Original-Received: via spool by 23754-done@debbugs.gnu.org id=D23754.146825406124300 (code D ref 23754); Mon, 11 Jul 2016 16:21:01 +0000 Original-Received: (at 23754-done) by debbugs.gnu.org; 11 Jul 2016 16:21:01 +0000 Original-Received: from localhost ([127.0.0.1]:47066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMdx6-0006Js-SC for submit@debbugs.gnu.org; Mon, 11 Jul 2016 12:21:01 -0400 Original-Received: from pb-sasl2.pobox.com ([64.147.108.67]:60523 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMdx5-0006Jk-HA for 23754-done@debbugs.gnu.org; Mon, 11 Jul 2016 12:20:59 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 476CB2754D; Mon, 11 Jul 2016 12:20:59 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=NEEMgoCMlSHv UhOc7Hm1PlfGCrE=; b=pVtZNUZpFYcwMqonF+W7nV4Tvfh9V9VPYmYn/8rBA3nP UXcnq8wuMIOuHNYMBClvoAmpqBmlRBvG9NLH4Dn8hpQAJEqi/bi6SQZ2yaNKNEbp /hzZdQXeZXDSBOzwlsb5uR3LIC7sTqlHqSxifs92hNZ6tD7P3iJYOVMtBK6yFSY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=YTRY2D cCrXOQVLsSjzbLwoHfea0Qtl3ttq2091+zF2gwfMPdaoFs/MLI9zNEAA5q73Ra5V lntfAEOILW9oKxZNd5HUi7PB2n0ISmGZPIMjUQ8oaSdNAbZJx55TsLCemz9DPV4/ mDzUjvv6uA2+8AhEHEgpsFc9lfOKk63GQE0uo= Original-Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 3F99D2754C; Mon, 11 Jul 2016 12:20:59 -0400 (EDT) Original-Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl2.pobox.com (Postfix) with ESMTPSA id 5CE372754B; Mon, 11 Jul 2016 12:20:58 -0400 (EDT) In-Reply-To: <87wpksppi8.fsf@gmail.com> (Alex Kost's message of "Mon, 11 Jul 2016 11:06:55 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-Pobox-Relay-ID: 73927266-4783-11E6-BAD7-28A6F1301B6D-02397024!pb-sasl2.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:8289 Archived-At: On Mon 11 Jul 2016 10:06, Alex Kost writes: > Ws Hu (2016-06-12 12:17 +0300) wrote: > >> Hi, >> >> guile replaces non-ascii unicodes with question marks while >> interpreting script file: >> >> $ cat test.scm >> (display "=E8=9B=A4") >> $ file test.scm >> test.scm: UTF-8 Unicode text >> $ guile test.scm >> ? > > Hi, putting (setlocale LC_ALL "") in the beginning of "test.scm" should > fix it. Note that this is fixed in the 2.2 beta releases. See the discussion in https://www.gnu.org/software/guile/manual/html_node/Environment-Variables.h= tml#Environment-Variables (part of the 2.0 manual) for more on GUILE_INSTALL_LOCALE. Unfortunately there is still a bug in GUILE_INSTALL_LOCALE=3D1 in most versions of Guile 2.0 where Guile will install the locale, but not use its charset for the default encoding :( Fixed in 2.2 beta releases, and will be fixed in 2.0.12. Andy