From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.user Subject: Re: command line argument locale for a guile script Date: Mon, 7 Nov 2011 10:59:22 -0200 Message-ID: <20111107105922.3512144f@rascar> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1320670792 18941 80.91.229.12 (7 Nov 2011 12:59:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Nov 2011 12:59:52 +0000 (UTC) Cc: guile-user@gnu.org To: cong gu Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Nov 07 13:59:48 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RNOnk-0006yG-Cv for guile-user@m.gmane.org; Mon, 07 Nov 2011 13:59:48 +0100 Original-Received: from localhost ([::1]:47427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNOnj-000491-NT for guile-user@m.gmane.org; Mon, 07 Nov 2011 07:59:47 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:49866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNOna-00048Y-NY for guile-user@gnu.org; Mon, 07 Nov 2011 07:59:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNOnY-0007K2-SU for guile-user@gnu.org; Mon, 07 Nov 2011 07:59:38 -0500 Original-Received: from maximusconfessor.all2all.org ([62.58.108.13]:52359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNOnY-0007JL-Nx for guile-user@gnu.org; Mon, 07 Nov 2011 07:59:36 -0500 Original-Received: from localhost (unknown [192.168.0.2]) by maximusconfessor.all2all.org (Postfix) with ESMTP id B1990A04C34D; Mon, 7 Nov 2011 13:59:33 +0100 (CET) Original-Received: from maximusconfessor.all2all.org ([192.168.0.1]) by localhost (maximusconfessor.all2all.org [192.168.0.2]) (amavisd-new, port 10024) with ESMTP id Nsbv-k3pT-z0; Mon, 7 Nov 2011 13:38:30 +0100 (CET) Original-Received: from rascar (unknown [139.82.89.157]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id CACB1A04C485; Mon, 7 Nov 2011 13:59:25 +0100 (CET) In-Reply-To: X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.6; i486-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 62.58.108.13 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:8938 Archived-At: Hello, > My question is that the command line arguments seems to be parsed > ... ... or can anybody tell me how to read arguments correctly? You must also set port encoding, see manual section 6.14.1 for details: (set-port-encoding! (current-output-port) "utf-8") Cheers, David