From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: utf-8 elisp problem Date: Mon, 28 Apr 2008 20:53:11 +0200 Message-ID: <48161D17.1060100@gmail.com> References: <4811a586-7b25-405b-8970-5aeff5ee0774@q1g2000prf.googlegroups.com> <481183C3.70102@gmail.com> <4811FE4B.7010802@gmail.com> <424e2e1c0804270151s39158899t4659d4a9a53e24c4@mail.gmail.com> <48156EA6.1020806@gmail.com> <4815F7E1.1080307@gmail.com> <424e2e1c0804280931n5df0caecm253774b81038c523@mail.gmail.com> <481603D2.2090100@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010204020006040909040909" X-Trace: ger.gmane.org 1209408842 12259 80.91.229.12 (28 Apr 2008 18:54:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2008 18:54:02 +0000 (UTC) Cc: Seraphees , mike yao , Emacs Devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 28 20:54:38 2008 connect(): Connection refused 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 1JqYUK-00067y-Ui for ged-emacs-devel@m.gmane.org; Mon, 28 Apr 2008 20:54:09 +0200 Original-Received: from localhost ([127.0.0.1]:54669 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqYTe-0004iK-Gz for ged-emacs-devel@m.gmane.org; Mon, 28 Apr 2008 14:53:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JqYTa-0004hl-N3 for emacs-devel@gnu.org; Mon, 28 Apr 2008 14:53:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JqYTZ-0004fJ-7K for emacs-devel@gnu.org; Mon, 28 Apr 2008 14:53:22 -0400 Original-Received: from [199.232.76.173] (port=42961 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqYTZ-0004fE-3p for emacs-devel@gnu.org; Mon, 28 Apr 2008 14:53:21 -0400 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JqYTY-0003fE-Kh for emacs-devel@gnu.org; Mon, 28 Apr 2008 14:53:21 -0400 Original-Received: from c83-254-150-27.bredband.comhem.se ([83.254.150.27]:62979 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JqYTW-00016Y-3T; Mon, 28 Apr 2008 20:53:18 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: X-Antivirus: avast! (VPS 080428-0, 2008-04-28), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.150.27 X-Scan-Result: No virus found in message 1JqYTW-00016Y-3T. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1JqYTW-00016Y-3T 01e7fa859282be2a24f0247ba6f335de X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:96095 Archived-At: This is a multi-part message in MIME format. --------------010204020006040909040909 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Stefan Monnier wrote: >> Thanks mike, that made it clear that this problem is over my >> head. I am not sure if this is a bug or not. I am sending this on >> Emacs devel where I am sure there a people who understand this better >> than me. > > The file uses non-ascii chars without specifying which encoding is used, > so the result depends on the user's environment. Thanks Stefan. Mike, could you please try the attached file where I believe I have specified the coding correctly? -- Would it be good to specify coding systems in all elisp files? --------------010204020006040909040909 Content-Type: text/plain; name="utf8-problem.el" Content-Transfer-Encoding: 8bit Content-Disposition: inline; filename="utf8-problem.el" (defvar utf8-problem "\\(?:^\\|[[:space:]]\\)\\(?:href\\|src\\)[[:space:]]*=[[:space:]]*\"\\([^<«\"]*\\)\"") ;; Local Variables: ;; coding: utf-8 ;; End: --------------010204020006040909040909--