diff options
| author | Eli Zaretskii | 2002-03-16 16:14:38 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2002-03-16 16:14:38 +0000 |
| commit | 0cd9a1a9199b5ebaf32319685db083432acdd574 (patch) | |
| tree | 507c70545a76595628a2c699b772557e026f7953 | |
| parent | 73cc75b5592e8e072299a29b2d525cae948cec47 (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/textmodes/po.el | 4 |
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 @@ | |||
| 1 | 2002-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 | |||
| 1 | 2002-03-16 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 6 | 2002-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. |