[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#8744: Also use detect-coding-string?

From: Marco Pessotto
Subject: bug#8744: Also use detect-coding-string?
Date: Sun, 29 May 2011 20:49:42 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Couldn't this patch be modified as:

index b9f92ff..fa8da53 100644
--- a/rcirc.el
+++ b/rcirc.el
@@ -1456,10 +1456,11 @@ record activity."
        (let ((moving (= (point) rcirc-prompt-end-marker))
              (old-point (point-marker))
              (fill-start (marker-position rcirc-prompt-start-marker)))
+         (setq text 
+               (decode-coding-string text (detect-coding-string text t)))
          (unless (string= sender (rcirc-nick process))
-           ;; only decode text from other senders, not ours
-           (setq text (decode-coding-string text rcirc-decode-coding-system))
            ;; mark the line with overlay arrow
            (unless (or (marker-position overlay-arrow-position)
                        (get-buffer-window (current-buffer))

I was annoyed by ppl mixing encodings on the same channel and this seems
to fix it.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]