unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Questions about coding utf-8-with-signature
@ 2024-02-02 17:22 Pascal Quesseveur
  2024-02-02 17:53 ` Pascal Quesseveur
  2024-02-02 17:59 ` Emanuel Berg
  0 siblings, 2 replies; 4+ messages in thread
From: Pascal Quesseveur @ 2024-02-02 17:22 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

What exactly is the expected behavior for coding
utf-8-with-signature?

  - if I understood correctly the BOM is a zero width no-break space
    character that can be inserted directly
    
  - whether or not to force the utf-8-with-signature encoding before
    saving the buffer has no impact on the bom

  - load-file with a source file in UTF-8 with BOM causes an error


-- 
Pascal Quesseveur
pquessev@gmail.com




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Questions about coding utf-8-with-signature
  2024-02-02 17:22 Questions about coding utf-8-with-signature Pascal Quesseveur
@ 2024-02-02 17:53 ` Pascal Quesseveur
  2024-02-02 18:02   ` Emanuel Berg
  2024-02-02 17:59 ` Emanuel Berg
  1 sibling, 1 reply; 4+ messages in thread
From: Pascal Quesseveur @ 2024-02-02 17:53 UTC (permalink / raw)
  To: help-gnu-emacs

Ok, I have understood.

The BOM is never displayed. Changing coding before saving has an
effect, but nothing change in displayed buffer. Adding a BOM
explictely is an error.

Sorry for the noise.


-- 
Pascal Quesseveur
pquessev@gmail.com




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Questions about coding utf-8-with-signature
  2024-02-02 17:22 Questions about coding utf-8-with-signature Pascal Quesseveur
  2024-02-02 17:53 ` Pascal Quesseveur
@ 2024-02-02 17:59 ` Emanuel Berg
  1 sibling, 0 replies; 4+ messages in thread
From: Emanuel Berg @ 2024-02-02 17:59 UTC (permalink / raw)
  To: help-gnu-emacs

Pascal Quesseveur wrote:

> if I understood correctly the BOM is a zero width no-break
> space character that can be inserted directly

AKA U+FEFF, zero width no-break space (old name BOM, byte
order mark). Here it is: 

-- 
underground experts united
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Questions about coding utf-8-with-signature
  2024-02-02 17:53 ` Pascal Quesseveur
@ 2024-02-02 18:02   ` Emanuel Berg
  0 siblings, 0 replies; 4+ messages in thread
From: Emanuel Berg @ 2024-02-02 18:02 UTC (permalink / raw)
  To: help-gnu-emacs

Pascal Quesseveur wrote:

> Adding a BOM explictely is an error.
>
> Sorry for the noise.

Ah, you mean BOOM!

-- 
underground experts united
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-02 18:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-02 17:22 Questions about coding utf-8-with-signature Pascal Quesseveur
2024-02-02 17:53 ` Pascal Quesseveur
2024-02-02 18:02   ` Emanuel Berg
2024-02-02 17:59 ` Emanuel Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).