From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Karl Eichwalder Newsgroups: gmane.emacs.devel Subject: textmodes/po.el: allow white space after : Date: Wed, 25 Jun 2003 14:03:25 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1056542729 8751 80.91.224.249 (25 Jun 2003 12:05:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 25 Jun 2003 12:05:29 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jun 25 14:05:27 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19V91j-0002Gz-00 for ; Wed, 25 Jun 2003 14:05:27 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19V95k-0004iX-00 for ; Wed, 25 Jun 2003 14:09:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19V90y-0003VL-TW for emacs-devel@quimby.gnus.org; Wed, 25 Jun 2003 08:04:40 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19V90G-0002gG-Ji for emacs-devel@gnu.org; Wed, 25 Jun 2003 08:03:56 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19V8zy-0002BJ-5c for emacs-devel@gnu.org; Wed, 25 Jun 2003 08:03:38 -0400 Original-Received: from ns.suse.de ([213.95.15.193] helo=Cantor.suse.de) by monty-python.gnu.org with esmtp (Exim 4.20) id 19V8zm-00022n-Ht for emacs-devel@gnu.org; Wed, 25 Jun 2003 08:03:26 -0400 Original-Received: from Hermes.suse.de (Hermes.suse.de [213.95.15.136]) by Cantor.suse.de (Postfix) with ESMTP id 687A414CE6 for ; Wed, 25 Jun 2003 14:03:25 +0200 (MEST) X-Authentication-Warning: frechet.suse.de: ke set sender to ke@suse.de using -f Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.090017 (Oort Gnus v0.17) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15236 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15236 White space inside the body of the header field must not be mandatory. Please apply the following patch. Maybe, we should also allow quotes around the charset value? 2003-06-25 Karl Eichwalder * textmodes/po.el (po-find-charset): White space at the start of the Content-Type field body is non-mandatory. Index: textmodes/po.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/textmodes/po.el,v retrieving revision 1.7 diff -c -r1.7 po.el *** textmodes/po.el 30 Oct 2002 19:47:53 -0000 1.7 --- textmodes/po.el 25 Jun 2003 11:58:51 -0000 *************** *** 42,48 **** (defun po-find-charset (filename) "Return PO charset value for FILENAME." (let ((charset-regexp ! "^\"Content-Type: text/plain;[ \t]*charset=\\(.*\\)\\\\n\"") (short-read nil)) ;; Try the first 4096 bytes. In case we cannot find the charset value ;; within the first 4096 bytes (the PO file might start with a long --- 42,48 ---- (defun po-find-charset (filename) "Return PO charset value for FILENAME." (let ((charset-regexp ! "^\"Content-Type:[ \t]*text/plain;[ \t]*charset=\\(.*\\)\\\\n\"") (short-read nil)) ;; Try the first 4096 bytes. In case we cannot find the charset value ;; within the first 4096 bytes (the PO file might start with a long -- Linux frechet 2.4.20-4GB #1 Tue Apr 8 13:00:26 UTC 2003 i686 GNU/Linux 2:00pm up 58 days 5:35, 17 users, load average: 0.01, 0.07, 0.15 work : ke@suse.de Karl Eichwalder home : keichwa@gmx.net