From: Karl Eichwalder <ke@suse.de>
Subject: textmodes/po.el: allow white space after :
Date: Wed, 25 Jun 2003 14:03:25 +0200 [thread overview]
Message-ID: <shisqu1i0i.fsf@frechet.suse.de> (raw)
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 <ke@suse.de>
* 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
reply other threads:[~2003-06-25 12:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=shisqu1i0i.fsf@frechet.suse.de \
--to=ke@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).