GNU bug report logs -
#13008
Invalid oct number convertion in string
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13008 in the body.
You can then email your comments to 13008 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guile <at> gnu.org
:
bug#13008
; Package
guile
.
(Tue, 27 Nov 2012 10:44:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
nalaginrut <nalaginrut <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-guile <at> gnu.org
.
(Tue, 27 Nov 2012 10:44:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Here is the story:
=====================cut===============================
scheme@(guile-user)> (format #t "\033[32;31mhello\033[5m")
33[32;31mhello33[5m$2 = #t
scheme@(guile-user)> (format #t "\x1b[32;31mhello\x1b[5m")
hello (in red color)
=====================end===============================
Seems "\033" can't be converted to "\x1b", and I tried "\o1b" failed.
I believe it ought to be a bug.
Information forwarded
to
bug-guile <at> gnu.org
:
bug#13008
; Package
guile
.
(Tue, 27 Nov 2012 22:47:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 13008 <at> debbugs.gnu.org (full text, mbox):
Hi!
nalaginrut <nalaginrut <at> gmail.com> skribis:
> 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?
Thanks,
Ludo’.
Information forwarded
to
bug-guile <at> gnu.org
:
bug#13008
; Package
guile
.
(Wed, 28 Nov 2012 02:35:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 13008 <at> debbugs.gnu.org (full text, mbox):
On Tue, 2012-11-27 at 23:44 +0100, Ludovic Courtès wrote:
> Hi!
>
> nalaginrut <nalaginrut <at> gmail.com> skribis:
>
> > 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?
>
Thanks for reply!
It's fine in ruby-1.9 and python2, but python3 failed.
IIRC, Andy told me that guile2/python3 use "character string" rather
than "byte string", so there's different from others.
Now my question is, should we have octal-escapes? Is is impossible or
not implemented yet?
Thanks!
> Thanks,
> Ludo’.
Information forwarded
to
bug-guile <at> gnu.org
:
bug#13008
; Package
guile
.
(Wed, 28 Nov 2012 03:37:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 13008 <at> debbugs.gnu.org (full text, mbox):
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?
Information forwarded
to
bug-guile <at> gnu.org
:
bug#13008
; Package
guile
.
(Wed, 28 Nov 2012 06:01:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 13008 <at> debbugs.gnu.org (full text, mbox):
On Wed, 2012-11-28 at 11:34 +0800, Daniel Hartwig wrote:
> 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?
Yes, I can use hex instead.
But, why we couldn't provide octal? Or it needs to be done?
Information forwarded
to
bug-guile <at> gnu.org
:
bug#13008
; Package
guile
.
(Wed, 28 Nov 2012 13:44:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 13008 <at> debbugs.gnu.org (full text, mbox):
nalaginrut <nalaginrut <at> gmail.com> skribis:
> Now my question is, should we have octal-escapes? Is is impossible or
> not implemented yet?
Nothing’s impossible, but there are already several kinds of escapes,
most of which are standardized, so I don’t think we need another one.
Closing this as not-a-bug.
Thanks,
Ludo’.
Added tag(s) notabug.
Request was from
ludo <at> gnu.org (Ludovic Courtès)
to
control <at> debbugs.gnu.org
.
(Wed, 28 Nov 2012 13:45:01 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
13008 <at> debbugs.gnu.org and nalaginrut <nalaginrut <at> gmail.com>
Request was from
ludo <at> gnu.org (Ludovic Courtès)
to
control <at> debbugs.gnu.org
.
(Wed, 28 Nov 2012 13:45:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 27 Dec 2012 12:24:03 GMT)
Full text and
rfc822 format available.
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.