From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#46171: 27.1; buffer-file-coding-system Date: Mon, 01 Feb 2021 10:22:38 +0100 Message-ID: <87pn1kp2g1.fsf@gnus.org> References: <83pn1nyhd2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17437"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 46171@debbugs.gnu.org, Gordillo-Marquijano Daniel-Fabian To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 01 10:23:15 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6VQR-0004QH-4g for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Feb 2021 10:23:15 +0100 Original-Received: from localhost ([::1]:36826 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6VQQ-0007vd-4G for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Feb 2021 04:23:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6VQG-0007v2-2D for bug-gnu-emacs@gnu.org; Mon, 01 Feb 2021 04:23:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47283) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6VQE-00026M-30 for bug-gnu-emacs@gnu.org; Mon, 01 Feb 2021 04:23:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6VQD-0005YB-Us for bug-gnu-emacs@gnu.org; Mon, 01 Feb 2021 04:23:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Feb 2021 09:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46171 X-GNU-PR-Package: emacs Original-Received: via spool by 46171-submit@debbugs.gnu.org id=B46171.161217136921291 (code B ref 46171); Mon, 01 Feb 2021 09:23:01 +0000 Original-Received: (at 46171) by debbugs.gnu.org; 1 Feb 2021 09:22:49 +0000 Original-Received: from localhost ([127.0.0.1]:58826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6VQ1-0005XL-8O for submit@debbugs.gnu.org; Mon, 01 Feb 2021 04:22:49 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:46744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6VQ0-0005X8-97 for 46171@debbugs.gnu.org; Mon, 01 Feb 2021 04:22:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=9Rf9J8O3wkBmfXL3bdwt7MFAYHvRxKZ0e2ZCGw05KyE=; b=f2EiCnhH1EIZMPmSsTX8pFoWUf sRx4GIepYxENOOs9aAkA42OBDmuGADFYxoOhnxPS58VarHnSRGg+mT+1IXKguJwm25q+mzsipwOPQ azdfvp1H6WwDkZMWpEMhf/gSEGvQCsizTHepMqi7GcCSSvpEAFmCEjxsoiuXr1sLj84U=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6VPr-0007V3-Tk; Mon, 01 Feb 2021 10:22:42 +0100 X-Now-Playing: Normil Hawaiians's _What's Going On?_: "Quiet Village" In-Reply-To: <83pn1nyhd2.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 29 Jan 2021 15:58:49 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:199064 Archived-At: Eli Zaretskii 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 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