GNU bug report logs - #46171
27.1; buffer-file-coding-system

Previous Next

Package: emacs;

Reported by: Gordillo-Marquijano Daniel-Fabian <daniel-f.gordillo <at> inetum.world>

Date: Fri, 29 Jan 2021 12:41:02 UTC

Severity: normal

Found in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 46171 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 46171 <at> debbugs.gnu.org,
 Gordillo-Marquijano Daniel-Fabian <daniel-f.gordillo <at> inetum.world>
Subject: Re: bug#46171: 27.1; buffer-file-coding-system
Date: Mon, 01 Feb 2021 10:22:38 +0100
Eli Zaretskii <eliz <at> 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




This bug report was last modified 4 years and 113 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.