emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master b8062be 3/5: Remove some compat code from eudc-bob.el


From: Eli Zaretskii
Subject: Re: master b8062be 3/5: Remove some compat code from eudc-bob.el
Date: Thu, 13 Aug 2020 21:25:56 +0300

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: emacs-devel@gnu.org
> Date: Thu, 13 Aug 2020 13:43:55 -0400
> 
> > In unibyte buffers the coding-system doesn't matter.
> 
> Reality check:
> 
>     % /usr/bin/emacs -Q --batch --eval '(with-temp-file "foo.txt" 
> (set-buffer-multibyte nil) (set-buffer-file-coding-system (quote dos)) 
> (insert "a\nb\n"))' 
>     % l foo.txt
>     -rw-r--r-- 1 monnier monnier 6 aoĆ» 13 13:41 foo.txt
>     %
> 
> the coding system *does* matter w.r.t EOL.

Again, this factoid isn't relevant to the issue at hand.

> > For a multibyte buffer, it's dangerous.
> 
> So you say, but again: Do you know a less "dangerous" alternative?

Yes: encode using UTF-8.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]