GNU bug report logs - #33057
Guile's reader assumes the port encoding is ASCII-compatible

Previous Next

Package: guile;

Reported by: Mark H Weaver <mhw <at> netris.org>

Date: Tue, 16 Oct 2018 01:43:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Mark H Weaver <mhw <at> netris.org>
To: 33057 <at> debbugs.gnu.org
Subject: bug#33057: Guile's reader assumes the port encoding is ASCII-compatible
Date: Mon, 15 Oct 2018 21:42:05 -0400
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




This bug report was last modified 6 years and 242 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.