Skip to content
Browse files

Try to detect the coding system of the incoming string

  • Loading branch information...
1 parent d9faf2c commit ab36fbb8e6bd637746ed8c8c4e634eb7c2670169 Marco committed May 29, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 rcirc.el
View
7 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))

0 comments on commit ab36fbb

Please sign in to comment.
Something went wrong with that request. Please try again.