Package: xemacs21
Version: 21.4.16-1
Severity: normal
Tags: patch

I read my email with Gnus.  With the version included with xemacs21, if I get
email from a sender with non-ASCII characters in his or her name, I get an error
like the following when trying to enter the group:

    Fetching headers for nnml+private:mail.inbox...done
    Generating summary...
    Args out of range: "�W����F��~ <[EMAIL PROTECTED]>", 39

I am using the included patch from upstream, and it seems to fix this problem.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (900, 'testing'), (400, 'unstable'), (200, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages xemacs21 depends on:
ii  xemacs21-mule                 21.4.16-1  Editor and kitchen sink -- Mule bi

-- no debconf information
--- gnus-msg.el 2005-01-24 08:06:59.000000000 -0800
+++ gnus-msg.el.2       2005-01-24 08:14:26.000000000 -0800
@@ -1855,10 +1855,13 @@
            (when (and filep v)
              (setq v (with-temp-buffer
                        (insert-file-contents v)
-                       (goto-char (point-max))
-                       (while (bolp)
-                         (delete-char -1))
-                       (buffer-string))))
+                       (buffer-substring
+                        (point-min)
+                        (progn
+                          (goto-char (point-max))
+                          (if (zerop (skip-chars-backward "\n"))
+                              (point)
+                            (1+ (point))))))))
            (setq results (delq (assoc element results) results))
            (push (cons element v) results))))
       ;; Now we have all the styles, so we insert them.

Reply via email to