From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.bugs Subject: bug#33057: Guile's reader assumes the port encoding is ASCII-compatible Date: Mon, 15 Oct 2018 21:42:05 -0400 Message-ID: <87zhveoefm.fsf@netris.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1539654068 3163 195.159.176.226 (16 Oct 2018 01:41:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 16 Oct 2018 01:41:08 +0000 (UTC) To: 33057@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Oct 16 03:41:04 2018 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCEM3-0000gj-BI for guile-bugs@m.gmane.org; Tue, 16 Oct 2018 03:41:03 +0200 Original-Received: from localhost ([::1]:55526 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCEO9-0006Iw-Qj for guile-bugs@m.gmane.org; Mon, 15 Oct 2018 21:43:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCEO1-0006Ig-Lj for bug-guile@gnu.org; Mon, 15 Oct 2018 21:43:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCENy-0007Dg-CO for bug-guile@gnu.org; Mon, 15 Oct 2018 21:43:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47394) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gCENy-0007Db-8B for bug-guile@gnu.org; Mon, 15 Oct 2018 21:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gCENy-0006qt-4l for bug-guile@gnu.org; Mon, 15 Oct 2018 21:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 16 Oct 2018 01:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33057 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153965417926327 (code B ref -1); Tue, 16 Oct 2018 01:43:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Oct 2018 01:42:59 +0000 Original-Received: from localhost ([127.0.0.1]:51652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCENv-0006qZ-EL for submit@debbugs.gnu.org; Mon, 15 Oct 2018 21:42:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58803) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCENt-0006qL-BF for submit@debbugs.gnu.org; Mon, 15 Oct 2018 21:42:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCENn-0006xq-EG for submit@debbugs.gnu.org; Mon, 15 Oct 2018 21:42:52 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:45363) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gCENn-0006xf-8b for submit@debbugs.gnu.org; Mon, 15 Oct 2018 21:42:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCENm-00063B-Dv for bug-guile@gnu.org; Mon, 15 Oct 2018 21:42:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCENj-0006tF-2p for bug-guile@gnu.org; Mon, 15 Oct 2018 21:42:50 -0400 Original-Received: from world.peace.net ([64.112.178.59]:54380) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gCENh-0006lU-B4 for bug-guile@gnu.org; Mon, 15 Oct 2018 21:42:46 -0400 Original-Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gCENa-0003V3-Mv; Mon, 15 Oct 2018 21:42:40 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.lisp.guile.bugs:9199 Archived-At: In several places, Guile's reader assumes that the port encoding is ASCII-compatible. For example: * 'scm_token' reads raw bytes and passes them to the CHAR_IS_DELIMITER macro to check for delimiters. * 'scm_read_mixed_case_symbol' checks for the (optional) postfix keyword syntax by comparing the final _byte_ read by 'read_token' with ':'. * 'scm_read_character' uses 'read_token' to read raw bytes up to the next delimiter, and if it returns a single byte with value 0-127, it is interpreted as the associated ASCII character regardless of the encoding. * 'scm_read_semicolon_comment' reads bytes until it finds one equal to the ASCII code for '\n'. There may be other problems as well. Mark