mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-18 18:00:11 +00:00
(po-find-charset): White space at the start of the Content-Type field body is
non-mandatory.
This commit is contained in:
parent
485fe977a0
commit
1f4dbcd90f
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ Contains canonical charset names that don't correspond to coding systems.")
|
|||
(defun po-find-charset (filename)
|
||||
"Return PO charset value for FILENAME."
|
||||
(let ((charset-regexp
|
||||
"^\"Content-Type: text/plain;[ \t]*charset=\\(.*\\)\\\\n\"")
|
||||
"^\"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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue