[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#31062: 26.0.91; warning on UTF-8 encoding of unibyte text
From: |
Lars Ingebrigtsen |
Subject: |
bug#31062: 26.0.91; warning on UTF-8 encoding of unibyte text |
Date: |
Thu, 02 Sep 2021 10:52:35 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
charles@aurox.ch (Charles A. Roelli) writes:
> (This test case assumes a locale-coding-system of utf-8-unix, and
> LANG: en_GB.UTF-8 or anything similar.)
>
> emacs -q
> C-x b test RET
> M-: (insert-byte 195 1) RET
> M-: (insert-byte 188 1) RET > buffer text should look like \303\274
> C-x C-s /tmp/foo RET > the path is irrelevant
>
> There's this warning:
>
> These default coding systems were tried to encode text
> in the buffer ‘test’:
> (utf-8-unix (1 . 4194243) (2 . 4194236))
> However, each of them encountered characters it couldn’t encode:
> utf-8-unix cannot encode these: \303 \274
>
> Is the text "(1 . 4194243) (2 . 4194236)" useful here? It looks like
> it's there by accident. If it is helpful, could someone please
> explain what it means?
I've now made this warning more readable (and informative) by formatting
it as a table, and saying what the data means in Emacs 28.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#31062: 26.0.91; warning on UTF-8 encoding of unibyte text,
Lars Ingebrigtsen <=