From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: [Bug] Export Coding System Date: Fri, 22 Feb 2013 10:28:13 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8prm-0008EK-18 for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 05:28:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8prk-0007hZ-4Q for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 05:28:33 -0500 Received: from plane.gmane.org ([80.91.229.3]:45827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8prj-0007hT-TG for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 05:28:32 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U8ps1-0007kU-MT for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 11:28:49 +0100 Received: from 217.10.52.10 ([217.10.52.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Feb 2013 11:28:49 +0100 Received: from Stromeko by 217.10.52.10 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Feb 2013 11:28:49 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I've ran into this before, but I guess I wasn't able to clearly explain what the issue was at the time... so let's try again. I'm exporting an Org file in UTF-8 to LaTeX. Unless I switch the coding system in Emacs from "default" to "UTF-8" (which has the side effect that any new buffer will have UTF-8 coding, which is usually not what I want), the LaTeX buffer gets created with ISO8859-1/latin-1 encoding (which is dead wrong, because several characters in the document are in fact not representable in that encoding). Changing the option "Org Export Latex Coding System" to utf-8 doesn't change how the LaTeX buffer gets created, but it will then helpfully ask when its time to save the buffer if I want to save it as UTF-8 (no, I want it created with UTF-8, not changed to a different encoding on save). That salvages a few characters, but the larger damage of \usepackage[latin1]{inputenc} doesn't get changed of course. The coding system of any export buffers should by default follow the Org buffer they are created from and any changes to the coding system stipulated by export configuration must be applied before the buffer coding system gets used to make any decisions on how to export things. Regards, Achim.