From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Linas Vepstas Newsgroups: gmane.lisp.guile.devel,gmane.lisp.guile.bugs Subject: Re: UTF-8 regression in guile 1.9.5 Date: Sun, 6 Dec 2009 13:33:25 -0600 Message-ID: <3ae3aa420912061133r3d2fb5b4w2b3ea31f3d05e701@mail.gmail.com> References: <3ae3aa420912061043y12a33f27ia3d2c298812ee358@mail.gmail.com> <437145.81403.qm@web37905.mail.mud.yahoo.com> Reply-To: linasvepstas@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1260128025 26460 80.91.229.12 (6 Dec 2009 19:33:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Dec 2009 19:33:45 +0000 (UTC) Cc: bug-guile@gnu.org, Guile Development To: Mike Gran Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Dec 06 20:33:38 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NHMrO-00037c-Un for guile-devel@m.gmane.org; Sun, 06 Dec 2009 20:33:35 +0100 Original-Received: from localhost ([127.0.0.1]:59263 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHMrO-0000Wz-Hx for guile-devel@m.gmane.org; Sun, 06 Dec 2009 14:33:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHMrL-0000WO-2m for guile-devel@gnu.org; Sun, 06 Dec 2009 14:33:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHMrG-0000Vu-KC for guile-devel@gnu.org; Sun, 06 Dec 2009 14:33:30 -0500 Original-Received: from [199.232.76.173] (port=52535 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHMrG-0000Vr-Ec; Sun, 06 Dec 2009 14:33:26 -0500 Original-Received: from mail-yw0-f196.google.com ([209.85.211.196]:54531) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NHMrG-00023c-3J; Sun, 06 Dec 2009 14:33:26 -0500 Original-Received: by ywh34 with SMTP id 34so3630609ywh.1 for ; Sun, 06 Dec 2009 11:33:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=zZRJQvclW9IfrS7z/ssNZdAbadrRX2ESXHK50rCtKK4=; b=QPcyrFT0Mmd+pb7/zSGJVZM+LcBwkGHJ2fUN2KVLDlxc9peAahd9K+wFppdLS9D0DT 7bNfOsSom5cTv6i4NST3ZogLhKDdljcJE3LmlRK4IljX7oHHh0Ig+XdamXgxYhr5YLa6 fX3pW9Ajxt4MTN0Pc//YkcSjzqqLlPuyVo34c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; b=tcMPV7bSdAOXiimJhp5OWf0x/3P51EwG27iFkKN6nlEZLh1KDEARIzmf+78ihHIFsH tPYl9VY1K2iOdRQTMmKM7RDkBy6ri49zYNm6D66DDS0xPMcmhFUp++CdRQE7SxQaQPGA 168rxjsSoWfwyBeOqrxuxvpyZJSY1fcx7lrA0= Original-Received: by 10.101.165.14 with SMTP id s14mr5073953ano.186.1260128005549; Sun, 06 Dec 2009 11:33:25 -0800 (PST) In-Reply-To: <437145.81403.qm@web37905.mail.mud.yahoo.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:9738 gmane.lisp.guile.bugs:4380 Archived-At: 2009/12/6 Mike Gran : >> From: Linas Vepstas > > >> Then, from the guile prompt, I can evaluate the following: >> >> =C2=A0 =C2=A0(new-node "=E3=81=A6=E3=81=BF=E3=81=BE=E3=81=97=E3=81=9F=E3= =80=82") >> >> and get the output "The name is =E3=81=A6=E3=81=BF=E3=81=BE=E3=81=97=E3= =81=9F=E3=80=82" >> >> >> However, in guile-1.9.5, the above gives me: >> >> =C2=A0 =C2=A0"The name is =C3=A3=C2=A6=C3=A3=C2=BF=C3=A3=C2=BE=C3=A3=C3= =A3=C3=A3" > > Hmm. =C2=A0The "=C3=A3" is a dead giveaway that you are printing a UTF-8 = string > that is being interpreted as a ISO-8859-1 string. > > You've already said that you're in a UTF-8 locale. =C2=A0It could be that= you > need to call (setlocale LC_ALL "") That cured it. > as well as having a setlocale call in your program. Doesn't seem to be required, after the above. Thanks! Why this happened is strange; I'm now investigating. Sorry to have bothered you with something that is dohh .. basic. --linas