Subject: Re: bug#46171: 27.1; buffer-file-coding-system

From: Lars Ingebrigtsen <[email-masked]>
Date: Mon, 01 Feb 2021 10:22:38 +0100

Eli Zaretskii <[email-masked]> writes:

> It isn't always possible to identify the UTF-8 encoding, so when the
> default of the locale is not UTF-8 (and it never is on MS-Windows),
> Emacs sometimes guesses wrong.
>
> To work around this, if you know the file is encoded in UTF-8, you can
> tell Emacs about that:
>
>   C-x RET c utf-8 RET C-x C-f <the-file> RET
>
> OTOH, if SQL files are always encoded in UTF-8 (are they?), we can add
> this knowledge to Emacs, assuming these files have some known
> file-name extension, or have some telltale string at their beginning.

SQL files can be in any coding system, so we can't really do anything
here on the Emacs side -- sometimes Emacs will guess wrong on the coding
system, and the user will have to provide some hints, as you say here.

So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no