[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#43632: Raw bytes printed as latin-1 in echo area and *Messages*
From: |
Lars Ingebrigtsen |
Subject: |
bug#43632: Raw bytes printed as latin-1 in echo area and *Messages* |
Date: |
Sat, 26 Sep 2020 16:22:10 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
> It is not an anomaly. If you want to see escapes, set
> print-escape-nonascii non-nil.
>
> Also note that what you see is the result of 'eval' printing the
> result, the real result (as returned by prin1) is a unibyte string:
>
> (multibyte-string-p (prin1 "\377")) => nil
>
> (Yes, this is very confusing.)
Could we do something about this confusion?
This came up because I just couldn't make sense of what I was seeing
when trying to work with raw bytes -- it seemed to be that Emacs was
auto-promoting unibyte strings (with bytes >127) to multibyte strings...
until I started calling multibyte-string-p on everything instead.
I'm guessing I'm not the only person confused by this stuff.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#43632: Raw bytes printed as latin-1 in echo area and *Messages*, Mattias Engdegård, 2020/09/26
- bug#43632: Raw bytes printed as latin-1 in echo area and *Messages*, Andreas Schwab, 2020/09/26
- bug#43632: Raw bytes printed as latin-1 in echo area and *Messages*, Eli Zaretskii, 2020/09/26
- bug#43632: Raw bytes printed as latin-1 in echo area and *Messages*,
Lars Ingebrigtsen <=
- bug#43632: Raw bytes printed as latin-1 in echo area and *Messages*, Mattias Engdegård, 2020/09/26
- bug#43632: Raw bytes printed as latin-1 in echo area and *Messages*, Eli Zaretskii, 2020/09/26
- bug#43632: Raw bytes printed as latin-1 in echo area and *Messages*, Mattias Engdegård, 2020/09/26
- bug#43632: Raw bytes printed as latin-1 in echo area and *Messages*, Eli Zaretskii, 2020/09/26
- bug#43632: Raw bytes printed as latin-1 in echo area and *Messages*, Eli Zaretskii, 2020/09/26
- bug#43632: Raw bytes printed as latin-1 in echo area and *Messages*, Lars Ingebrigtsen, 2020/09/27
- bug#43632: Raw bytes printed as latin-1 in echo area and *Messages*, Eli Zaretskii, 2020/09/27
- bug#43632: Raw bytes printed as latin-1 in echo area and *Messages*, Lars Ingebrigtsen, 2020/09/27
- bug#43632: Raw bytes printed as latin-1 in echo area and *Messages*, Eli Zaretskii, 2020/09/27