[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] read-byte, etc.
From: |
Hans Bulfone |
Subject: |
[Chicken-users] read-byte, etc. |
Date: |
Thu, 30 Mar 2006 02:42:36 +0200 |
User-agent: |
Mutt/1.5.9i |
hi,
i'm porting the rfc.mime library from gauche to chicken.
in the library the procedures read-byte, peek-byte and
write-byte are used to read/write bytes which are given
as integers.
at the moment, i'm using
(define (read-byte . args)
(let ((ch (apply read-char args)))
(if (eof-object? ch)
ch
(char->integer ch))))
and similar definitions which seem to work, but i wonder
if they are still correct with the utf8 egg.
what is the correct way to read a single byte from a port?
regards,
hans.
- [Chicken-users] read-byte, etc.,
Hans Bulfone <=