From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "David De La Harpe Golden" Newsgroups: gmane.emacs.devel Subject: Re: Auto-detection of windows-1252 fails Date: Sat, 5 Jan 2008 16:44:19 +0000 Message-ID: <8e24944a0801050844x47fb26dbufcbc83f89663ff0@mail.gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1199551474 19539 80.91.229.12 (5 Jan 2008 16:44:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Jan 2008 16:44:34 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 05 17:44:55 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JBC8h-0003XU-N7 for ged-emacs-devel@m.gmane.org; Sat, 05 Jan 2008 17:44:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBC8L-0004V8-2S for ged-emacs-devel@m.gmane.org; Sat, 05 Jan 2008 11:44:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JBC8H-0004Ut-7Q for emacs-devel@gnu.org; Sat, 05 Jan 2008 11:44:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JBC8E-0004Tc-Ou for emacs-devel@gnu.org; Sat, 05 Jan 2008 11:44:23 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBC8E-0004TO-Jm for emacs-devel@gnu.org; Sat, 05 Jan 2008 11:44:22 -0500 Original-Received: from rv-out-0910.google.com ([209.85.198.191]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JBC8E-0000hm-Be for emacs-devel@gnu.org; Sat, 05 Jan 2008 11:44:22 -0500 Original-Received: by rv-out-0910.google.com with SMTP id c27so8636089rvf.6 for ; Sat, 05 Jan 2008 08:44:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=m5q7sr38CdgE3kdJ2xL/45YqYfRU4PTa7gPh8WdEdQM=; b=WmwNn4Z8LTt5Gtt8+9cYc3O5WcJNrQOKNCaJUVSVB+fgruLIi/jrPj9d2HATIDHhGbq2O1d0nOpyq4zr6vXRArNS1yxpa97uzrlCsKaE4KnEOwWPiFXa0XWIK/tk54eKgJMT9uJtGtKoS2h5BiBQ0rmPqmsRz79Rn5Tt6Z0Jb6Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CVDx9YDQVen5GzxLo2lljMlFXwfhxCPHsVa5dqMv6fv2dswpOrAezVGzCRtZmG5qnho4S3vsxZYEvU14/gNWB/w4xbd1RCCdwm5z5Xa4zj6n4BrfhJAyIJw4HiEM0y+8N5QY/I32mBHiEW/7wzx56ZWI8ZWLFZRffdjHkDlxxtA= Original-Received: by 10.142.52.9 with SMTP id z9mr370540wfz.237.1199551459986; Sat, 05 Jan 2008 08:44:19 -0800 (PST) Original-Received: by 10.143.17.10 with HTTP; Sat, 5 Jan 2008 08:44:19 -0800 (PST) In-Reply-To: Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:86193 Archived-At: [this is more appropriate place to note this than the thread Reiner+I were in in comp.emacs]: Function set-coding-system-priority in src/coding.c says it won't actually add two encodings of the same "coding-system-category" to the priority list. And at least in emacs-unicode2, iso-latin-1 and windows-1252 are apparently being put in the same category, "coding-category-charset", unlike, say utf-8 or sjis. So adding windows-1252 to coding-priority after iso-latin-1 won't do anything without changing more stuff. main and emacs-unicode2's src/coding.c look like they differ quite a bit at this stage, but on emacs-unicode2 (I personally don't have a cvs head version around at the moment to check what it's doing): (mapcar (lambda (x) (cons x (coding-system-category x))) (coding-system-list)) ;; or just '(windows-1252 iso-latin-1)) shows that a lot of encodings are ending up in coding-category-charset.