From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: [Bug] Export Coding System Date: Fri, 22 Feb 2013 15:06:47 +0000 (UTC) Message-ID: References: <87zjywjxjp.fsf@gmail.com> 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]:50545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8uDM-0000FR-Sr for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 10:07:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8uDI-0001YV-80 for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 10:07:08 -0500 Received: from plane.gmane.org ([80.91.229.3]:44147) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8uDI-0001Y7-1o for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 10:07:04 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U8uDa-0001P7-2W for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 16:07:22 +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 16:07:22 +0100 Received: from Stromeko by 217.10.52.10 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Feb 2013 16:07:22 +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 Nicolas Goaziou gmail.com> writes: > IIUC, there is no such thing as a coding system associated to a buffer. > A coding system only kicks in when doing some I/O operation. The coding system should be associated with the file the buffer is visiting, but a fresh buffer still shows a coding system indicator in the modeline even if it is not (yet) associated with a file. That coding system always seems to be the default coding system as provided by the language environment. > Anyway, with the same context described above, what's the return value > for: > > (detect-coding-string (org-export-as 'latex) t) Depends on what language environment is set to, but with the default setting of my Emacs (German) it becomes iso-latin-1, independently of what the coding system in the original Org buffer was. I think that the export buffer coding system should be explicitly set (via buffer-file-coding-system, which is automatically buffer-local) to copy the coding of the parent buffer (or the coding specified via export options if anything like that exists) so that the default choice of the language environment doesn't kick in. Regards, Achim.