[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why does using aset sometimes output raw bytes?
From: |
Eli Zaretskii |
Subject: |
Re: Why does using aset sometimes output raw bytes? |
Date: |
Sun, 09 Dec 2018 20:55:49 +0200 |
> From: Stephen Berman <stephen.berman@gmx.net>
> Cc: help-gnu-emacs@gnu.org
> Date: Sun, 09 Dec 2018 19:50:08 +0100
>
> I was experimenting with aset to make random permutations of a string
> and didn't understand why there were sometimes raw bytes in the result
> (which also led to args-out-of-range errors), but using (make-string len
> 128) as the container for the permutations prevents that. And with your
> above explanations I now think I understand why.
Yes, you need to start with a multibyte string to do this kind of
thing safely.
- Why does using aset sometimes output raw bytes?, Stephen Berman, 2018/12/09
- Re: Why does using aset sometimes output raw bytes?, Eli Zaretskii, 2018/12/09
- Re: Why does using aset sometimes output raw bytes?, Stephen Berman, 2018/12/09
- Re: Why does using aset sometimes output raw bytes?, Stephen Berman, 2018/12/09
- Re: Why does using aset sometimes output raw bytes?, Eli Zaretskii, 2018/12/09
- Re: Why does using aset sometimes output raw bytes?, Stephen Berman, 2018/12/09
- Re: Why does using aset sometimes output raw bytes?, Eli Zaretskii, 2018/12/09
- Re: Why does using aset sometimes output raw bytes?, Stephen Berman, 2018/12/09
- Re: Why does using aset sometimes output raw bytes?,
Eli Zaretskii <=
Re: Why does using aset sometimes output raw bytes?, Stefan Monnier, 2018/12/09
- Re: Why does using aset sometimes output raw bytes?, Stephen Berman, 2018/12/09
- Re: Why does using aset sometimes output raw bytes?, Stefan Monnier, 2018/12/09
- Re: Why does using aset sometimes output raw bytes?, Eli Zaretskii, 2018/12/09
- Re: Why does using aset sometimes output raw bytes?, Stefan Monnier, 2018/12/09
- Re: Why does using aset sometimes output raw bytes?, Eli Zaretskii, 2018/12/10
- Re: Why does using aset sometimes output raw bytes?, Stefan Monnier, 2018/12/10
Re: Why does using aset sometimes output raw bytes?, Stephen Berman, 2018/12/09