From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Agustin Martin Newsgroups: gmane.emacs.bugs Subject: bug#11200: 24.0.95; ispell.el sets incorrect encoding for the default dictionary Date: Mon, 16 Apr 2012 19:05:01 +0200 Message-ID: <20120416170501.GA14907@agmartin.aq.upm.es> References: <83aa2ma7sk.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1334595976 23863 80.91.229.3 (16 Apr 2012 17:06:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Apr 2012 17:06:16 +0000 (UTC) To: 11200-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 16 19:06:14 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SJpNQ-0006M6-Qf for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Apr 2012 19:06:08 +0200 Original-Received: from localhost ([::1]:44067 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJpNP-0000aS-VY for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Apr 2012 13:06:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJpNJ-0000Zp-OZ for bug-gnu-emacs@gnu.org; Mon, 16 Apr 2012 13:06:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJpNH-0003Wv-Ta for bug-gnu-emacs@gnu.org; Mon, 16 Apr 2012 13:06:01 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36078) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJpNH-0003Wn-QD for bug-gnu-emacs@gnu.org; Mon, 16 Apr 2012 13:05:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SJpNK-0004LC-5q for bug-gnu-emacs@gnu.org; Mon, 16 Apr 2012 13:06:02 -0400 Resent-From: Agustin Martin Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Apr 2012 17:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 11200 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 11200@debbugs.gnu.org, agustin.martin@hispalinux.es Original-Received: via spool by 11200-done@debbugs.gnu.org id=D11200.133459591816635 (code D ref 11200); Mon, 16 Apr 2012 17:06:01 +0000 Original-Received: (at 11200-done) by debbugs.gnu.org; 16 Apr 2012 17:05:18 +0000 Original-Received: from localhost ([127.0.0.1]:37112 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJpMb-0004KG-F0 for submit@debbugs.gnu.org; Mon, 16 Apr 2012 13:05:18 -0400 Original-Received: from fibonacci.ccupm.upm.es ([138.100.198.70]:53627 helo=smtp.upm.es) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJpMV-0004Ju-4E for 11200-done@debbugs.gnu.org; Mon, 16 Apr 2012 13:05:16 -0400 Original-Received: from agmartin.aq.upm.es (Agmartin.aq.upm.es [138.100.41.131]) by smtp.upm.es (8.14.3/8.14.3/fibonacci-001) with ESMTP id q3GH51e7018273; Mon, 16 Apr 2012 19:05:01 +0200 Original-Received: by agmartin.aq.upm.es (Postfix, from userid 1000) id 8416D4F5; Mon, 16 Apr 2012 19:05:01 +0200 (CEST) Content-Disposition: inline In-Reply-To: <83aa2ma7sk.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59124 Archived-At: On Sun, Apr 08, 2012 at 12:31:55PM +0300, Eli Zaretskii wrote: > In ispell.el we see: > > (defvar ispell-dictionary-base-alist > '((nil > ;; The default dictionary. It may be English.aff, or any other > ;; dictionary depending on locale and such things. We should probably > ;; ask ispell what dictionary it's using, but until we do that, let's > ;; just use an approximate regexp. > "[[:alpha:]]" "[^[:alpha:]]" "[']" nil ("-B") nil iso-8859-1) > > The iso-8859-1 part is not the optimal choice for aspell and hunspell. > These spell-checkers support UTF-8 encoding, so using utf-8 here will > DTRT in a much larger number of locales. With iso-8859-1, any > non-Latin locale will require the user to customize > ispell-local-dictionary-alist, when there's no real reason for forcing > them do that. > > Please include some simple logic to use utf-8 with the default > dictionary, when the speller is aspell or hunspell. Committed change to use utf-8 for recent aspell or hunspell together with the change to use [:alpha:] if available. Closing bug report. By the way, since global dicts will always use [:alpha:] in Emacs, I will revert above `ispell-dictionary-base-alist' definition to the XEmacs friendly original version. Should have no effect at all for Emacs. Thanks for your hunspell tests and general feedback. -- Agustin