From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.bugs Subject: bug#8308: 23.3; Use utf-8 for writing abbrev file Date: Mon, 21 Mar 2011 14:22:24 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1300689542 20228 80.91.229.12 (21 Mar 2011 06:39:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2011 06:39:02 +0000 (UTC) To: 8308@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 21 07:38:57 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1YlU-0006jL-Et for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2011 07:38:56 +0100 Original-Received: from localhost ([127.0.0.1]:42176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1YlT-0001bS-Sz for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2011 02:38:55 -0400 Original-Received: from [140.186.70.92] (port=39891 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1Yjh-0000of-4i for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2011 02:37:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1Yjg-0002sj-47 for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2011 02:37:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1Yjg-0002sf-2e for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2011 02:37:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q1YW5-0002qw-SW; Mon, 21 Mar 2011 02:23:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Leo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: monnier@iro.umontreal.ca, bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Mar 2011 06:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8308 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: Stefan Monnier Original-Received: via spool by submit@debbugs.gnu.org id=B.130068857310949 (code B ref -1); Mon, 21 Mar 2011 06:23:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Mar 2011 06:22:53 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1YVv-0002qY-Q7 for submit@debbugs.gnu.org; Mon, 21 Mar 2011 02:22:52 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1YVt-0002qM-JY for submit@debbugs.gnu.org; Mon, 21 Mar 2011 02:22:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1YVn-0000f4-Mq for submit@debbugs.gnu.org; Mon, 21 Mar 2011 02:22:44 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:49087) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1YVn-0000f0-KU for submit@debbugs.gnu.org; Mon, 21 Mar 2011 02:22:43 -0400 Original-Received: from [140.186.70.92] (port=42457 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1YVl-0005i0-4v for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2011 02:22:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1YVk-0000dk-26 for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2011 02:22:41 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:60929) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1YVj-0000dP-TW for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2011 02:22:40 -0400 Original-Received: by iwl42 with SMTP id 42so7686420iwl.0 for ; Sun, 20 Mar 2011 23:22:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:x-debbugs-cc:date:message-id :mime-version:content-type; bh=fvwcCt2IPtoqRqJAxaCOfS3bBv+RTDvgvbb7QQWYWhE=; b=krd3FCBtzBRQE8fHJMxRyZPki2MBbrAx4O9fwj1XGAjpIQ+UBzGdlsqzIJw+zLqtGq E3YR4+II5+1O4VevYWACifmDVVch12MrbJ609KELM589pxWI0imEAvbJmihvFxFPgYwX 1ULLKZCIQUcHbe5ZRo61iw+smyk5alHg9H/3E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:x-debbugs-cc:date:message-id:mime-version :content-type; b=V6yx8gL9wwhIzBmacIPaw1qUH2DQH2u0lzNaDst/ugywhRteHKXF3zhs5v/yCmnvro oxw6Avk26eLtgT6RRjcW4f6pbIigOfbNdbW6iTMhPMn9oIigctJyZDgy+RFWNeJVnH7b S1IsI4u02Vvem4hSTUDIgTH/uwDRyuPStqlH4= Original-Received: by 10.42.38.71 with SMTP id b7mr6075796ice.438.1300688558221; Sun, 20 Mar 2011 23:22:38 -0700 (PDT) Original-Received: from localhost ([114.249.16.245]) by mx.google.com with ESMTPS id d10sm3492343ibb.51.2011.03.20.23.22.31 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 20 Mar 2011 23:22:34 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 21 Mar 2011 02:23:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45217 Archived-At: Is it OK to change the encoding for abbrev file to utf-8? === modified file 'lisp/abbrev.el' --- a/lisp/abbrev.el 2011-03-21 05:49:12 +0000 +++ b/lisp/abbrev.el 2011-03-21 06:20:36 +0000 @@ -225,9 +225,9 @@ abbrev-file-name))) (or (and file (> (length file) 0)) (setq file abbrev-file-name)) - (let ((coding-system-for-write 'emacs-mule)) + (let ((coding-system-for-write 'utf-8)) (with-temp-file file - (insert ";;-*-coding: emacs-mule;-*-\n") + (insert ";;-*-coding: utf-8;-*-\n") (dolist (table ;; We sort the table in order to ease the automatic ;; merging of different versions of the user's abbrevs Leo