From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: msematman@myopera.com Newsgroups: gmane.lisp.guile.user Subject: displaying UTF8 characters in and out of a script (guile 2.0.5) Date: Sun, 16 Dec 2012 20:22:34 +0100 Message-ID: <1355685754.7015.140661166743981.0F8ECFCA@webmail.messagingengine.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 1355685765 19696 80.91.229.3 (16 Dec 2012 19:22:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Dec 2012 19:22:45 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Dec 16 20:22:59 2012 Return-path: Envelope-to: guile-user@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 1TkJne-0000Pa-Ng for guile-user@m.gmane.org; Sun, 16 Dec 2012 20:22:58 +0100 Original-Received: from localhost ([::1]:39268 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkJnR-0005rS-Ej for guile-user@m.gmane.org; Sun, 16 Dec 2012 14:22:45 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkJnL-0005rN-1w for guile-user@gnu.org; Sun, 16 Dec 2012 14:22:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TkJnI-0001sQ-Mq for guile-user@gnu.org; Sun, 16 Dec 2012 14:22:38 -0500 Original-Received: from new1-smtp.messagingengine.com ([66.111.4.221]:46539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkJnI-0001sI-If for guile-user@gnu.org; Sun, 16 Dec 2012 14:22:36 -0500 Original-Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id C54C4491 for ; Sun, 16 Dec 2012 14:22:34 -0500 (EST) Original-Received: from web2.nyi.mail.srv.osa ([10.202.2.212]) by compute3.internal (MEProxy); Sun, 16 Dec 2012 14:22:34 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:subject:date; s=smtpout; bh=mkowZSiuhW1WxoZYRTXVZkn03wg=; b=EaBIQnaYZ3fNJ/Ynkj3sgTDK8+B0 HAlK2n/4FpewzMUpdLEtsfSdK3msryABiHlw/dozi2cJ/DssM/b3aEJQ4ulsFr4I hxKqyL/FhOcJZn3Z67tyeV4jNkH0CJLF8JZpmBLgsxL4HDP3vu3HkfarzF+88/Gy Zn2133dthsUrZRg= Original-Received: by web2.nyi.mail.srv.osa (Postfix, from userid 99) id 6FA0C8245C; Sun, 16 Dec 2012 14:22:34 -0500 (EST) X-Sasl-Enc: cE3CF5eTjFfQyVwhnYgTQTUjQzhO1K0efiGQ9+2Kme7z 1355685754 X-Mailer: MessagingEngine.com Webmail Interface - ajax-32b5e02e X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.221 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 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-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9745 Archived-At: Dear all, (display "=C4=86i=C4=87olina") from the interactive session with the guile interpreter correctly writes =C4=86i=C4=87olina to the standard output. However, the same command in a script: #!/usr/bin/guile \ -s #! (display "=C4=86i=C4=87olina") writes this out: ?i?olina Obviously, there is something wrong with the output of UTF8 characters in the case of the guile script. In contrast, a similar bash script on my system (Debian Wheezy GNU\Linux): #!/bin/sh echo "=C4=86i=C4=87olina" writes out the correct output.=20 This indicates that there is probably nothing wrong with my locale setting. If anybody has any clue what actually went wrong , please let me know. Cheers --=20 =20=20 msematman@myopera.com