From unknown Mon Jun 23 04:08:18 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#17044 <17044@debbugs.gnu.org> To: bug#17044 <17044@debbugs.gnu.org> Subject: Status: R6RS open-input-file failed to recognize UTF-8 encoded file Reply-To: bug#17044 <17044@debbugs.gnu.org> Date: Mon, 23 Jun 2025 11:08:18 +0000 retitle 17044 R6RS open-input-file failed to recognize UTF-8 encoded file reassign 17044 guile submitter 17044 Xin Wang severity 17044 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 19 20:41:24 2014 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-- From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 19 23:46:04 2014 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 From unknown Mon Jun 23 04:08:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 17 Apr 2014 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator