From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.bugs Subject: bug#17044: R6RS open-input-file failed to recognize UTF-8 encoded file Date: Wed, 19 Mar 2014 23:45:26 -0400 Message-ID: <87ha6tpm7d.fsf@yeeloong.lan> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1395287236 2787 80.91.229.3 (20 Mar 2014 03:47:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2014 03:47:16 +0000 (UTC) Cc: 17044-done@debbugs.gnu.org To: Xin Wang Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Mar 20 04:47:24 2014 Return-path: Envelope-to: guile-bugs@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 1WQTww-0004ej-Pq for guile-bugs@m.gmane.org; Thu, 20 Mar 2014 04:47:22 +0100 Original-Received: from localhost ([::1]:45071 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQTww-0005Kk-Fh for guile-bugs@m.gmane.org; Wed, 19 Mar 2014 23:47:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQTwl-0005Ka-EI for bug-guile@gnu.org; Wed, 19 Mar 2014 23:47:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQTwd-0005Pm-FI for bug-guile@gnu.org; Wed, 19 Mar 2014 23:47:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQTwd-0005Pi-D0 for bug-guile@gnu.org; Wed, 19 Mar 2014 23:47:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WQTwc-0004KH-WC for bug-guile@gnu.org; Wed, 19 Mar 2014 23:47:03 -0400 Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-To: bug-guile@gnu.org Resent-Date: Thu, 20 Mar 2014 03:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 17044 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Mail-Followup-To: 17044@debbugs.gnu.org, mhw@netris.org, dram.wang@gmail.com Original-Received: via spool by 17044-done@debbugs.gnu.org id=D17044.139528716416538 (code D ref 17044); Thu, 20 Mar 2014 03:47:02 +0000 Original-Received: (at 17044-done) by debbugs.gnu.org; 20 Mar 2014 03:46:04 +0000 Original-Received: from localhost ([127.0.0.1]:41773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQTvg-0004Ig-Cj for submit@debbugs.gnu.org; Wed, 19 Mar 2014 23:46:04 -0400 Original-Received: from world.peace.net ([96.39.62.75]:34195) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQTve-0004IB-Ms for 17044-done@debbugs.gnu.org; Wed, 19 Mar 2014 23:46:03 -0400 Original-Received: from 209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.91.212] helo=yeeloong.lan) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WQTvX-0008TU-MO; Wed, 19 Mar 2014 23:45:56 -0400 In-Reply-To: (Xin Wang's message of "Thu, 20 Mar 2014 08:41:15 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7413 Archived-At: Xin Wang writes: > `open-input-file' in (rnrs io simple) can not recognize UTF-8 encoded > file, `open-input-file' in core do not have this problem. > > I think it is caused by a bug in definition of `open-input-file', > which forget to pass third argument `buffer-mode' to > `open-file-input-port'. Indeed, thanks for tracking this down. > BTW, `open-output-file' seems to have a similar problem. Fixed in 5dcbcfcef8eefd1f9e57d8ba69efe1ca945c95b1. This will be in 2.0.11, which will most likely be released within a couple of days. Thanks, Mark