[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#46171: 27.1; buffer-file-coding-system
From: |
Lars Ingebrigtsen |
Subject: |
bug#46171: 27.1; buffer-file-coding-system |
Date: |
Mon, 01 Feb 2021 10:22:38 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#46171: 27.1; buffer-file-coding-system,
Lars Ingebrigtsen <=