help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UUIDGEN in lisp


From: Jesper Harder
Subject: Re: UUIDGEN in lisp
Date: Mon, 16 Feb 2004 17:30:10 +0100
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

"Eli Zaretskii" <address@hidden> writes:

> Jesper, can you explain why did you need all these monstrocities
> with coding-system-for-read

Binding coding-system-for-read is definitely necessary.  I'm reading
random bytes, and I don't want Emacs to convert any of the values.  If
I don't bind it, `uuid-random' can return a list like:

(159 92 2210 119 150 148 2275 2265 2290 2220 2240 62 84 2235 150 18)

which is wrong, since it's not a list of bytes.

> and string-as-unibyte?  

string-as-unibyte is probably unnecessary.

> Is there some real problem behind this, or simply a bit of paranoia
> (no offense)?  What am I missing?

Uhm, I don't think there's anything strange about having to bind
coding-system-for-read to binary -- I _am_ reading binary data, after
all.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]