[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#31248: 27.0.50; Regression: Multibyte text in HTTP request
From: |
Lars Ingebrigtsen |
Subject: |
bug#31248: 27.0.50; Regression: Multibyte text in HTTP request |
Date: |
Tue, 24 Apr 2018 14:23:04 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Lars Ingebrigtsen <larsi@gnus.org> writes:
> (length foo)
> => 30
> (string-bytes foo)
> => 34
>
> Fun! :-)
The reason here is that when you put raw bytes into a multibyte string,
Emacs has to represent that somehow, and it represents that with an
internal coding that takes two bytes per byte. If you get my drift.
So the moral here is: That function is really, really badly designed,
because it makes it easy (for people like me) to make these errors
really easily. Once I merge the `with-url' branch (which reimplements
all the HTTP stuff) into master I hopefully won't ever have to look at
that function again. :-)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#31248: 27.0.50; Regression: Multibyte text in HTTP request, (continued)
- bug#31248: 27.0.50; Regression: Multibyte text in HTTP request, Lars Ingebrigtsen, 2018/04/23
- bug#31248: 27.0.50; Regression: Multibyte text in HTTP request, Aaron Jensen, 2018/04/23
- bug#31248: 27.0.50; Regression: Multibyte text in HTTP request, Lars Ingebrigtsen, 2018/04/23
- bug#31248: 27.0.50; Regression: Multibyte text in HTTP request, Aaron Jensen, 2018/04/23
- bug#31248: 27.0.50; Regression: Multibyte text in HTTP request, Andreas Schwab, 2018/04/24
- bug#31248: 27.0.50; Regression: Multibyte text in HTTP request, Aaron Jensen, 2018/04/24
- bug#31248: 27.0.50; Regression: Multibyte text in HTTP request, Lars Ingebrigtsen, 2018/04/24
- bug#31248: 27.0.50; Regression: Multibyte text in HTTP request, Lars Ingebrigtsen, 2018/04/24
- bug#31248: 27.0.50; Regression: Multibyte text in HTTP request, Aaron Jensen, 2018/04/24
- bug#31248: 27.0.50; Regression: Multibyte text in HTTP request, Lars Ingebrigtsen, 2018/04/24
- bug#31248: 27.0.50; Regression: Multibyte text in HTTP request,
Lars Ingebrigtsen <=
- bug#31248: 27.0.50; Regression: Multibyte text in HTTP request, Aaron Jensen, 2018/04/24