[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 0d7d09b: Test for error with multibyte strings in bindat.el
From: |
Stefan Monnier |
Subject: |
Re: master 0d7d09b: Test for error with multibyte strings in bindat.el |
Date: |
Thu, 22 Oct 2020 11:32:45 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> + (should-error (bindat-pack nil nil (decode-coding-string "ö" 'utf-8))))
I don't understand this code: "ö" is a multibyte string,
i.e. a sequence of chars (and not a sequence of bytes), so you can
"encode" it to a sequence of bytes but "decoding" it makes no sense
(and should ideally signal an error, tho I think we currently refrain
from doing so).
Stefan
- Re: master 0d7d09b: Test for error with multibyte strings in bindat.el,
Stefan Monnier <=