From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: unicode support Date: Mon, 31 Mar 2014 14:36:23 +0200 Message-ID: <87d2h2h7eg.fsf@gnu.org> References: <20140331051838.E1F5413FB97@raspberrypi> <87fvly230x.fsf@WS-IT-19-15.tts.loc> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1396269434 24485 80.91.229.3 (31 Mar 2014 12:37:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 31 Mar 2014 12:37:14 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Mar 31 14:37:07 2014 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 1WUbSX-0000Dt-7x for guile-user@m.gmane.org; Mon, 31 Mar 2014 14:37:01 +0200 Original-Received: from localhost ([::1]:48491 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUbSW-0007o6-Ts for guile-user@m.gmane.org; Mon, 31 Mar 2014 08:37:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUbSH-0007iZ-ME for guile-user@gnu.org; Mon, 31 Mar 2014 08:36:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WUbS8-0001i7-Ng for guile-user@gnu.org; Mon, 31 Mar 2014 08:36:45 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:48845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUbS8-0001gi-2e for guile-user@gnu.org; Mon, 31 Mar 2014 08:36:36 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WUbS6-00089h-Ag for guile-user@gnu.org; Mon, 31 Mar 2014 14:36:34 +0200 Original-Received: from pluto.bordeaux.inria.fr ([193.50.110.57]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 31 Mar 2014 14:36:34 +0200 Original-Received: from ludo by pluto.bordeaux.inria.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 31 Mar 2014 14:36:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pluto.bordeaux.inria.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 11 Germinal an 222 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:i7f++ylGh2EM8vKLU3rf/nu6rkU= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:11178 Archived-At: Игорь Гайсин skribis: > Hi, dmitriy. Try to add this line to head your scripts > > (setlocale LC_ALL "") > (set-port-encoding! (current-input-port) "utf-8") > (set-port-encoding! (current-output-port) "utf-8") Also, note that by default the source file is expected to be UTF-8-encoded. You can use a different encoding, but then the file needs to contain a ‘coding:’ cookie (info "(guile) Character Encoding of Source Files"). Ludo’.