GNU bug report logs -
#22436
read-coding-system uses wrong default when called from write-file
Previous Next
Full log
Message #35 received at 22436 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> (Anyway, when you say "most people", did you consider how many people
> in the world consider chinese-iso-8bit a very good first choice? ;-)
:-)
>> Which would be utf8 on most systems, and possibly ucs16 on Windows,
>> I dunno.
>
> Using UTF-16 on Windows would be disastrous: almost no program,
> certainly not those which are ports of GNU software, can do anything
> useful with such an encoding. Emacs is the only exception I know of.
Right. I thought I had read somewhere that Windows was UTF-16-ey, but I
know nothing about Windows...
>> So `chinese-iso-8bit' is a surprising default.
>
> It's not a default.
>
>> Could the default be improved upon?
>
> We can sort the list differently. But if all we want is to always get
> UTF-8 at the head, there's a much easier way, see my other message
> where I mentioned prefer-coding-system.
I guess I'm just saying that I think the least surprising default coding
system here would be utf-8. So Emacs should offer that as the first
option unless the user has said otherwise. That is, Emacs should say
utf-8 unless the user has called `prefer-coding-system' with something
else.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 9 years and 173 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.