[gambit-list] #\esc's wrong ascii code
Bradley Lucier
lucier at math.purdue.edu
Thu Jan 10 20:43:48 EST 2008
Looks like a simple bug in _io.scm:
(define ##standard-named-char-table '(
("newline" . #\newline) ;; here to take precedence over linefeed
("space" . #\space)
("nul" . #\x00)
("alarm" . #\x07)
("backspace" . #\x08)
("tab" . #\x09)
("linefeed" . #\x0A)
("vtab" . #\x0B)
("page" . #\x0C)
("return" . #\x0D)
("esc" . #\x1A)
("delete" . #\x7F)
))
On Jan 10, 2008, at 8:20 PM, Adrien Pierard wrote:
>
> Hello Schemers.
>
> It looks like Gambit associates the value 26 to the #\esc character,
> instead of 27.
>
> (char->integer #\esc)
> => 26
>
> (integer->char 26)
> => #\esc
>
>
> it might be unintentional, but lib/_io.c has
> ___DEF_GLO(26,"##escape-keyword?")
>
> Isn't this blind chance?
>
>
> Adrien.
>
> --
> Hapy new year
> _______________________________________________
> Gambit-list mailing list
> Gambit-list at iro.umontreal.ca
> https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
More information about the Gambit-list
mailing list