From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.user Subject: Re: unicode support Date: Wed, 02 Apr 2014 15:48:10 +0800 Organization: HFG Message-ID: <1396424890.17592.11.camel@Renee-desktop.suse> References: <20140331051838.E1F5413FB97@raspberrypi> <87fvly230x.fsf@WS-IT-19-15.tts.loc> <87vbuum4fv.fsf@yeeloong.lan> 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 1396521191 7232 80.91.229.3 (3 Apr 2014 10:33:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Apr 2014 10:33:11 +0000 (UTC) Cc: guile-user@gnu.org, Dima To: Mark H Weaver Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Apr 03 12:33:04 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 1WVeLZ-0001eo-2D for guile-user@m.gmane.org; Thu, 03 Apr 2014 11:54:09 +0200 Original-Received: from localhost ([::1]:36981 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVFuU-0001Pr-Cj for guile-user@m.gmane.org; Wed, 02 Apr 2014 03:48:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVFuG-0001Ph-Kt for guile-user@gnu.org; Wed, 02 Apr 2014 03:48:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WVFuC-0005yo-25 for guile-user@gnu.org; Wed, 02 Apr 2014 03:48:20 -0400 Original-Received: from mail-pd0-x234.google.com ([2607:f8b0:400e:c02::234]:55434) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVFuB-0005ye-Ql for guile-user@gnu.org; Wed, 02 Apr 2014 03:48:15 -0400 Original-Received: by mail-pd0-f180.google.com with SMTP id v10so10761443pde.39 for ; Wed, 02 Apr 2014 00:48:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :organization:content-type:mime-version:content-transfer-encoding; bh=onZkrpfmuYxbxOaZhXJKhmvSYROa0AThvfV8zKVh/Rc=; b=LDWyHk5dtBivgU9l/ZH1BVxFxCxRBImT19XxhDhIFIXB/PuMV20rX01NHFGjLNv8/n HzKUEaiTVzf5rTztSVU1u8JLkCJP+1LsBPdV4ufH6uThTaLOYHivk471sVEs0ITwNFp/ 3FVDNXqLz7RuPZI0boK1IpV0HyVbut7I/l+EAJAvCzWTtkejreF0LqEaYLPVicNHKKAx hzOuriHVeidpZN5Ao+YunMRU0nCUthIywUVRi66WiraMPg2l8hjuDQXSlhS6VbLAUk6J 3zXJAVOpRyEnOMkhTDytFoe7n0XvnPmex88hsG7ilqbg6u26ljkSJd4Md0MOYP6Opgaa fHzg== X-Received: by 10.66.141.231 with SMTP id rr7mr36042164pab.41.1396424894824; Wed, 02 Apr 2014 00:48:14 -0700 (PDT) Original-Received: from [147.2.147.115] ([203.192.156.9]) by mx.google.com with ESMTPSA id tk5sm2516127pbc.63.2014.04.02.00.48.12 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Wed, 02 Apr 2014 00:48:14 -0700 (PDT) In-Reply-To: <87vbuum4fv.fsf@yeeloong.lan> X-Mailer: Evolution 3.4.4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::234 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:11183 Archived-At: On Mon, 2014-03-31 at 17:41 -0400, Mark H Weaver wrote: > Игорь Гайсин writes: > > > 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") > > The 'setlocale' call is indeed important. > Yes, it is. And let me emphasize this again for any non latin-1 users. Because it's so common that I was asked by others frequently. My projects are heavily using CJK, so I always put it under shebang lines to avoid "????" situation: ------------------------code----------------------- #! /bin/env guile !# (setlocale LC_ALL "") ------------------------end------------------------ Don't forget this ;-) > The next two lines shouldn't be needed, and would cause breakage on > non-utf8 locales. > > Regards, > Mark > > > > Dima writes: > > > >> Hi. > >> Did something change from guile 1.8.x to 2.0 with regards to unicode support. > >> > >> I have a script that has strings written on russian without much care, and it does not work on 2.0. > >> > >> I want to make sure whether there are changes in guile or something else. > >> > >> Thanks, regards, > >> Dima. >