* textmodes/po.el: allow white space after :
@ 2003-06-25 12:03 Karl Eichwalder
0 siblings, 0 replies; only message in thread
From: Karl Eichwalder @ 2003-06-25 12:03 UTC (permalink / 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-06-25 12:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-25 12:03 textmodes/po.el: allow white space after : Karl Eichwalder
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).