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 22:05:49 +0100
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

"Eli Zaretskii" <address@hidden> writes:

>> 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.
>
> Do you have an actual example where that happens?

The list above _is_ an actual example.  It happens all the time if you
don't bind coding-system-for-read -- just try it a few times :-)

>> 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.
>
> raw-text is probably a better candidate.

Why?  Doesn't raw-text do EOL conversion?  (which we don't want here).


reply via email to

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