aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2002-03-16 16:14:38 +0000
committerEli Zaretskii2002-03-16 16:14:38 +0000
commit0cd9a1a9199b5ebaf32319685db083432acdd574 (patch)
tree507c70545a76595628a2c699b772557e026f7953
parent73cc75b5592e8e072299a29b2d525cae948cec47 (diff)
downloademacs-0cd9a1a9199b5ebaf32319685db083432acdd574.tar.gz
emacs-0cd9a1a9199b5ebaf32319685db083432acdd574.zip
(po-find-charset): Search for Charset= header even if we've read less than
4KB.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/textmodes/po.el4
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b93c92be2e2..70db7f61a21 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12002-03-16 Eli Zaretskii <eliz@fencepost.gnu.org>
2
3 * textmodes/po.el (po-find-charset): Search for the Charset=
4 header even if we've read less than 4KB.
5
12002-03-16 Pavel Jan,Bm(Bk <Pavel@Janik.cz> 62002-03-16 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
2 7
3 * textmodes/bibtex.el (bibtex-sort-ignore-string-entries) 8 * textmodes/bibtex.el (bibtex-sort-ignore-string-entries)
diff --git a/lisp/textmodes/po.el b/lisp/textmodes/po.el
index 30a188cf688..191f166e1e6 100644
--- a/lisp/textmodes/po.el
+++ b/lisp/textmodes/po.el
@@ -130,8 +130,8 @@ Content-Type into a Mule coding system.")
130 (1- (point)) 130 (1- (point))
131 (1- (+ (point) 4096))))) 131 (1- (+ (point) 4096)))))
132 (setq short-read (< (nth 1 pair) 4096))))) 132 (setq short-read (< (nth 1 pair) 4096)))))
133 (cond (short-read nil) 133 (cond ((re-search-forward charset-regexp nil t) (match-string 1))
134 ((re-search-forward charset-regexp nil t) (match-string 1)) 134 (short-read nil)
135 ;; We've found the first msgid; maybe, only a part of the msgstr 135 ;; We've found the first msgid; maybe, only a part of the msgstr
136 ;; value was loaded. Load the next 1024 bytes; if charset still 136 ;; value was loaded. Load the next 1024 bytes; if charset still
137 ;; isn't available, give up. 137 ;; isn't available, give up.