summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/textmodes/po.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/textmodes/po.el b/lisp/textmodes/po.el
index 6793d4171b4..46e37311ab9 100644
--- a/lisp/textmodes/po.el
+++ b/lisp/textmodes/po.el
@@ -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