From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ludovic =?UTF-8?B?Q291cnTDqHM=?= Newsgroups: gmane.lisp.guile.bugs Subject: [bug #29643] Current locale has higher precedence than `coding:' when determining file port encoding [1.9.10] Date: Thu, 22 Apr 2010 16:36:40 +0000 Message-ID: <20100422-163639.sv15145.4334@savannah.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=UTF-8 X-Trace: dough.gmane.org 1271955287 22822 80.91.229.12 (22 Apr 2010 16:54:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Apr 2010 16:54:47 +0000 (UTC) To: Ludovic =?UTF-8?B?Q291cnTDqHM=?= , bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Apr 22 18:54:45 2010 connect(): No such file or directory Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O4zfo-0003xn-PG for guile-bugs@m.gmane.org; Thu, 22 Apr 2010 18:54:45 +0200 Original-Received: from localhost ([127.0.0.1]:46980 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4zfo-0001Hr-6p for guile-bugs@m.gmane.org; Thu, 22 Apr 2010 12:54:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4zOX-0006Ih-3d for bug-guile@gnu.org; Thu, 22 Apr 2010 12:36:53 -0400 Original-Received: from [140.186.70.92] (port=60463 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4zOV-0006FL-29 for bug-guile@gnu.org; Thu, 22 Apr 2010 12:36:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4zOT-0001EW-0C for bug-guile@gnu.org; Thu, 22 Apr 2010 12:36:50 -0400 Original-Received: from colonialone.fsf.org ([140.186.70.51]:48955 helo=internal.in.savannah.gnu.org) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4zOK-0001CO-SY; Thu, 22 Apr 2010 12:36:40 -0400 Original-Received: from [10.1.0.103] (helo=frontend.in.savannah.gnu.org) by internal.in.savannah.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4zOK-000507-O6; Thu, 22 Apr 2010 16:36:40 +0000 Original-Received: from www-data by frontend.in.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1O4zOK-00083L-Mq; Thu, 22 Apr 2010 16:36:40 +0000 X-Savane-Server: savannah.gnu.org:443 [10.1.0.103] X-Savane-Project: guile X-Savane-Tracker: bugs X-Savane-Item-ID: 29643 User-Agent: Mozilla/5.0 (GNU; rv:1.9.1.7) Gecko/20100107 IceCat/3.6 (like Firefox/3.6) X-Apparently-From: 147.210.128.170 (Savane authenticated user civodul) Original-References: In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4587 Archived-At: URL: Summary: Current locale has higher precedence than `coding:' when determining file port encoding [1.9.10] Project: Guile Submitted by: civodul Submitted on: Thu 22 Apr 2010 04:36:39 PM GMT Category: None Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: Consider this example: #v+ scheme@(guile-user)> (setlocale LC_ALL "") $1 = "LC_CTYPE=en_US.UTF-8;LC_NUMERIC=en_US.UTF-8;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=fr_FR.UTF-8;LC_NAME=en_US.UTF-8;LC_ADDRESS=en_US.UTF-8;LC_TELEPHONE=en_US.UTF-8;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=en_US.UTF-8" scheme@(guile-user)> (open-input-file "module/scripts/compile.scm") $2 = # scheme@(guile-user)> (port-encoding $2) $3 = "UTF-8" scheme@(guile-user)> (file-encoding $2) $4 = "ISO-8859-1" #v- This file reads "-*- coding: iso-8859-1 -*-" so it should be open using a Latin-1 encoding, regardless of the current locale's encoding. Ludo'. _______________________________________________________ Reply to this item at: _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/