]> git.eshelyaron.com Git - emacs.git/commitdiff
(po-find-charset): Search for Charset= header even if we've read less than
authorEli Zaretskii <eliz@gnu.org>
Sat, 16 Mar 2002 16:14:38 +0000 (16:14 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 16 Mar 2002 16:14:38 +0000 (16:14 +0000)
4KB.

lisp/ChangeLog
lisp/textmodes/po.el

index b93c92be2e22526c44ee43196ef440a759e604d9..70db7f61a2106cc07884d67afd3cba01922acf20 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-16  Eli Zaretskii  <eliz@fencepost.gnu.org>
+
+       * textmodes/po.el (po-find-charset): Search for the Charset=
+       header even if we've read less than 4KB.
+
 2002-03-16  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
 
        * textmodes/bibtex.el (bibtex-sort-ignore-string-entries)
index 30a188cf688e337be09ce943e7e872f19cb6dae4..191f166e1e65cccc68ef73db6f8525a4b857d4db 100644 (file)
@@ -130,8 +130,8 @@ Content-Type into a Mule coding system.")
                                                    (1- (point))
                                                    (1- (+ (point) 4096)))))
          (setq short-read (< (nth 1 pair) 4096)))))
-    (cond (short-read nil)
-         ((re-search-forward charset-regexp nil t) (match-string 1))
+    (cond ((re-search-forward charset-regexp nil t) (match-string 1))
+         (short-read nil)
          ;; We've found the first msgid; maybe, only a part of the msgstr
          ;; value was loaded.  Load the next 1024 bytes; if charset still
          ;; isn't available, give up.