From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 16 17:14:19 2018 Received: (at submit) by debbugs.gnu.org; 16 Jun 2018 21:14:19 +0000 Received: from localhost ([127.0.0.1]:52150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fUIWZ-0002CD-3Y for submit@debbugs.gnu.org; Sat, 16 Jun 2018 17:14:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40737) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fUIWX-0002C1-KZ for submit@debbugs.gnu.org; Sat, 16 Jun 2018 17:14:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUIWR-0001U8-Qy for submit@debbugs.gnu.org; Sat, 16 Jun 2018 17:14:12 -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,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55517) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fUIWR-0001Ty-Mt for submit@debbugs.gnu.org; Sat, 16 Jun 2018 17:14:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUIWQ-0006om-Ok for bug-guile@gnu.org; Sat, 16 Jun 2018 17:14:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUIWP-0001TK-Ri for bug-guile@gnu.org; Sat, 16 Jun 2018 17:14:10 -0400 Received: from iustitia.weinholt.se ([2a02:28f0:0:a::7dce:e5a8]:58980) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fUIWP-0001SU-Gr for bug-guile@gnu.org; Sat, 16 Jun 2018 17:14:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=weinholt.se ; s=iustitia2012; h=Content-Transfer-Encoding:Content-Type:MIME-Version: Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=zURzBdeOyBJwg5dYdVNNWEEaBr8UB4YeheKDn+eggNA=; b=X9JeeyQcJsMzpqPIIrkn/VyX0o SLngLL6Pge9A+VBPQ0t4/GT/RwP9fT7n+orkGtaKI0M8BzU4PFzhCJc89LVRQ15hDi5e8bqICxDPs H2BpNY/JZvBYScAhFAhf94hOiodIFiyQeJnj5oWJxlBv5kG93ATqYy/pRktyCN/HRI3V0aozKgssZ +cm8BU08ePy1aebuAtwSsAttogISHbkTTNdMHOQ/WSk4ODLVmkvaQqkJ3cyazEHKxYqifORwTfb/A 12TzR7bP8wkryvX6lXTCCp1dt8j0mZ1sJHgkk9SSKRpgYZGVtG83FQ6MLKPHNaaUSWZeY5PSAanCH trssjm9Q==; Received: from uucp by iustitia.weinholt.se with local-bsmtp (Exim 4.89) (envelope-from ) id 1fUIWM-0002AF-CY; Sat, 16 Jun 2018 23:14:06 +0200 Received: from weinholt by teapot.weinholt.se with local (Exim 4.91) (envelope-from ) id 1fUIND-0002GY-87; Sat, 16 Jun 2018 23:04:39 +0200 From: =?utf-8?Q?G=C3=B6ran?= Weinholt To: bug-guile@gnu.org Subject: Hex-escaped r6rs symbols are not read correctly Date: Sat, 16 Jun 2018 23:04:39 +0200 Message-ID: <87k1qy30k8.fsf@teapot.weinholt.se> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -6.0 (------) Hello schemers! R6RS specifies an inline hex escape syntax for symbols. These do not work in Guile 2.2.3: scheme@(guile-user)> (read-enable 'r6rs-hex-escapes) $1 =3D (square-brackets r6rs-hex-escapes keywords #f positions) scheme@(guile-user)> (symbol->string '\x7c; ) $2 =3D "\\x7c" I expected this to return "|". While fixing this, perhaps it would also be possible to add recognition of #!r6rs to set the appropriate per-port read options, similarly to how #!fold-case is recognized? It would make it much easier to load R6RS code in Guile. Best Regards, --=20 G=C3=B6ran Weinholt Debian developer 73 de SA6CJK