]> git.eshelyaron.com Git - emacs.git/commitdiff
lisp/gnus/qp.el: Don't replace "from " at bol
authorDaiki Ueno <ueno@gnu.org>
Fri, 4 Dec 2015 05:15:59 +0000 (05:15 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 4 Dec 2015 05:15:59 +0000 (05:15 +0000)
* lisp/gnus/qp.el (quoted-printable-encode-region): Bind `case-fold-search'
to nil when looking for "^From ".  Problem reported by Simon Josefsson.

lisp/gnus/qp.el

index 6c48f0fc9a45ace1c4d2965c873062fc191b555b..d7ed30d374943e3605db2858a3e53ba000131755 100644 (file)
@@ -143,7 +143,8 @@ encode lines starting with \"From\"."
             (and (boundp 'mm-use-ultra-safe-encoding)
                  mm-use-ultra-safe-encoding)))
        (when (or fold mm-use-ultra-safe-encoding)
-         (let ((tab-width 1))          ; HTAB is one character.
+         (let ((tab-width 1)           ; HTAB is one character.
+               (case-fold-search nil))
            (goto-char (point-min))
            (while (not (eobp))
              ;; In ultra-safe mode, encode "From " at the beginning