Whenever I open a file encoded with dos end lines, Emacs decides it's encoded in
undecided_linux and displays
^M after each line.
I checked, those files all have matching newline characters (no odd
^J without a preceding
I have set the following:
(setq-default buffer-file-coding-system 'utf-8-dos) (prefer-coding-system 'utf-8-dos)
When I test
buffer-file-coding-system in a file, I get:
buffer-file-coding-system is a variable defined in ‘C source code’. Its value is ‘undecided-unix’ Local in buffer foo; global value is utf-8-dos Automatically becomes permanently buffer-local when set.
GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30
- Prelude (commit ID
63c697c2f4ca3cc8b8329f70a3b6ed474db312d5, Jan 1 2019, with some minor personal tweaks of mine).
This started recently, I'm pretty sure I didn't change anything in configuration or versions before it started happening.
Did anyone have such problems? Or should I just update Emacs and Prelude in hopes it's fixed?