GNU bug report logs - #13008
Invalid oct number convertion in string

Previous Next

Package: guile;

Reported by: nalaginrut <nalaginrut <at> gmail.com>

Date: Tue, 27 Nov 2012 10:44:01 UTC

Severity: normal

Tags: notabug

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Daniel Hartwig <mandyke <at> gmail.com>
To: nalaginrut <nalaginrut <at> gmail.com>
Cc: 13008 <at> debbugs.gnu.org
Subject: bug#13008: Invalid oct number convertion in string
Date: Wed, 28 Nov 2012 11:34:25 +0800
On 28 November 2012 10:32, nalaginrut <nalaginrut <at> gmail.com> wrote:
>> > scheme@(guile-user)> (format #t "\033[32;31mhello\033[5m")
>>
>> Here, \0 is taken to mean #\nul, and then there are two #\3.
>>
>> IOW, there is no such syntax for octal escapes (info "(guile) String
>> Syntax").
>>
>> What made you think otherwise?
>>

> Now my question is, should we have octal-escapes? Is is impossible or
> not implemented yet?

You can use two or four digit hex codes, “\xHH” and “\uHHHH”.  Is it
useful to support octal on top of that?




This bug report was last modified 12 years and 179 days ago.

Previous Next


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