From unknown Mon Jun 23 04:11:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17044: R6RS open-input-file failed to recognize UTF-8 encoded file Resent-From: Xin Wang Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 20 Mar 2014 00:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17044 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 17044@debbugs.gnu.org X-Debbugs-Original-To: bug-guile@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.139527608524844 (code B ref -1); Thu, 20 Mar 2014 00:42:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Mar 2014 00:41:25 +0000 Received: from localhost ([127.0.0.1]:41663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQR2y-0006Sd-Hg for submit@debbugs.gnu.org; Wed, 19 Mar 2014 20:41:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49007) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQR2t-0006SQ-PZ for submit@debbugs.gnu.org; Wed, 19 Mar 2014 20:41:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQR2s-0000FN-KO for submit@debbugs.gnu.org; Wed, 19 Mar 2014 20:41:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQR2s-0000FI-HG for submit@debbugs.gnu.org; Wed, 19 Mar 2014 20:41:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQR2r-00070k-MU for bug-guile@gnu.org; Wed, 19 Mar 2014 20:41:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQR2q-0000EC-RE for bug-guile@gnu.org; Wed, 19 Mar 2014 20:41:17 -0400 Received: from mail-qc0-x233.google.com ([2607:f8b0:400d:c01::233]:41174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQR2q-0000Cl-Lj for bug-guile@gnu.org; Wed, 19 Mar 2014 20:41:16 -0400 Received: by mail-qc0-f179.google.com with SMTP id m20so131463qcx.38 for ; Wed, 19 Mar 2014 17:41:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=NmMP4zKcGZkeg09PSlGZRiu7M3jaNb47URtNCEYp4X8=; b=UM8i8KDzJXVVLP7xD0j9Pr+KlPjY8vkqmlq+hE4ALu5qn6MzWHKCycCMiFJz8MrnIP DGtizEpR72yW3OFNndcMcJWlWg6A+stlkTjL3P8y4eyuMODRqJsR5Z8Bn39l/BcJ5wkH V1aK4xMrE0YVwjU2axjLfOYJe2ZEL+ozOUjR/tW2M5hSQWE+pop1tG+Gv59K5YGbjVfG z7WYpqa8vZgp2E4mXyEnDJwI8vEwL5lcvFsxSqsghYU0UKRINRlvkAPuGbvbiiN0UuAO K3lpXfgwzRJ1K6hborlKAOL6MVjBGRv1qvNFQNs277MdFguO8Grf0MQNyWL+oyjtUDk1 qWng== MIME-Version: 1.0 X-Received: by 10.224.0.79 with SMTP id 15mr47359106qaa.2.1395276075818; Wed, 19 Mar 2014 17:41:15 -0700 (PDT) Received: by 10.140.48.142 with HTTP; Wed, 19 Mar 2014 17:41:15 -0700 (PDT) Date: Thu, 20 Mar 2014 08:41:15 +0800 Message-ID: From: Xin Wang Content-Type: multipart/alternative; boundary=047d7bf0d498dce23204f4ff0607 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --047d7bf0d498dce23204f4ff0607 Content-Type: text/plain; charset=ISO-8859-1 `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'. BTW, `open-output-file' seems to have a similar problem. --047d7bf0d498dce23204f4ff0607 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
`open-input-file' in (rnrs io simple) can not rec= ognize UTF-8 encoded file, `open-input-file' in core do not have this p= roblem.

I think it is caused by a bug in definition of `o= pen-input-file', which forget to pass third argument `buffer-mode' = to `open-file-input-port'.

BTW, `open-output-file' seems to have a similar problem.=
--047d7bf0d498dce23204f4ff0607-- From unknown Mon Jun 23 04:11:17 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Xin Wang Subject: bug#17044: closed (Re: bug#17044: R6RS open-input-file failed to recognize UTF-8 encoded file) Message-ID: References: <87ha6tpm7d.fsf@yeeloong.lan> X-Gnu-PR-Message: they-closed 17044 X-Gnu-PR-Package: guile Reply-To: 17044@debbugs.gnu.org Date: Thu, 20 Mar 2014 03:47:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1395287223-16626-1" This is a multi-part message in MIME format... ------------=_1395287223-16626-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #17044: R6RS open-input-file failed to recognize UTF-8 encoded file which was filed against the guile package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 17044@debbugs.gnu.org. --=20 17044: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D17044 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1395287223-16626-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 17044-done) by debbugs.gnu.org; 20 Mar 2014 03:46:04 +0000 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 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 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 From: Mark H Weaver To: Xin Wang Subject: Re: bug#17044: R6RS open-input-file failed to recognize UTF-8 encoded file References: Date: Wed, 19 Mar 2014 23:45:26 -0400 In-Reply-To: (Xin Wang's message of "Thu, 20 Mar 2014 08:41:15 +0800") Message-ID: <87ha6tpm7d.fsf@yeeloong.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17044-done Cc: 17044-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) 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 ------------=_1395287223-16626-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 20 Mar 2014 00:41:25 +0000 Received: from localhost ([127.0.0.1]:41663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQR2y-0006Sd-Hg for submit@debbugs.gnu.org; Wed, 19 Mar 2014 20:41:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49007) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQR2t-0006SQ-PZ for submit@debbugs.gnu.org; Wed, 19 Mar 2014 20:41:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQR2s-0000FN-KO for submit@debbugs.gnu.org; Wed, 19 Mar 2014 20:41:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQR2s-0000FI-HG for submit@debbugs.gnu.org; Wed, 19 Mar 2014 20:41:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQR2r-00070k-MU for bug-guile@gnu.org; Wed, 19 Mar 2014 20:41:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQR2q-0000EC-RE for bug-guile@gnu.org; Wed, 19 Mar 2014 20:41:17 -0400 Received: from mail-qc0-x233.google.com ([2607:f8b0:400d:c01::233]:41174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQR2q-0000Cl-Lj for bug-guile@gnu.org; Wed, 19 Mar 2014 20:41:16 -0400 Received: by mail-qc0-f179.google.com with SMTP id m20so131463qcx.38 for ; Wed, 19 Mar 2014 17:41:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=NmMP4zKcGZkeg09PSlGZRiu7M3jaNb47URtNCEYp4X8=; b=UM8i8KDzJXVVLP7xD0j9Pr+KlPjY8vkqmlq+hE4ALu5qn6MzWHKCycCMiFJz8MrnIP DGtizEpR72yW3OFNndcMcJWlWg6A+stlkTjL3P8y4eyuMODRqJsR5Z8Bn39l/BcJ5wkH V1aK4xMrE0YVwjU2axjLfOYJe2ZEL+ozOUjR/tW2M5hSQWE+pop1tG+Gv59K5YGbjVfG z7WYpqa8vZgp2E4mXyEnDJwI8vEwL5lcvFsxSqsghYU0UKRINRlvkAPuGbvbiiN0UuAO K3lpXfgwzRJ1K6hborlKAOL6MVjBGRv1qvNFQNs277MdFguO8Grf0MQNyWL+oyjtUDk1 qWng== MIME-Version: 1.0 X-Received: by 10.224.0.79 with SMTP id 15mr47359106qaa.2.1395276075818; Wed, 19 Mar 2014 17:41:15 -0700 (PDT) Received: by 10.140.48.142 with HTTP; Wed, 19 Mar 2014 17:41:15 -0700 (PDT) Date: Thu, 20 Mar 2014 08:41:15 +0800 Message-ID: Subject: R6RS open-input-file failed to recognize UTF-8 encoded file From: Xin Wang To: bug-guile@gnu.org Content-Type: multipart/alternative; boundary=047d7bf0d498dce23204f4ff0607 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --047d7bf0d498dce23204f4ff0607 Content-Type: text/plain; charset=ISO-8859-1 `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'. BTW, `open-output-file' seems to have a similar problem. --047d7bf0d498dce23204f4ff0607 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
`open-input-file' in (rnrs io simple) can not rec= ognize UTF-8 encoded file, `open-input-file' in core do not have this p= roblem.

I think it is caused by a bug in definition of `o= pen-input-file', which forget to pass third argument `buffer-mode' = to `open-file-input-port'.

BTW, `open-output-file' seems to have a similar problem.=
--047d7bf0d498dce23204f4ff0607-- ------------=_1395287223-16626-1--