From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marco Pessotto Newsgroups: gmane.emacs.bugs Subject: bug#8744: Also use detect-coding-string? Date: Mon, 30 May 2011 16:18:47 +0200 Message-ID: <87d3j01dbs.fsf@universe.krase.net> References: <87sjrxnxyx.fsf@universe.krase.net> <8762oselk0.fsf@universe.krase.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1306765270 30540 80.91.229.12 (30 May 2011 14:21:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 May 2011 14:21:10 +0000 (UTC) Cc: 8744@debbugs.gnu.org, Leo To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 30 16:21:06 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QR3L7-0006Uc-UH for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 May 2011 16:21:06 +0200 Original-Received: from localhost ([::1]:58316 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QR3L7-0008Df-F3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 May 2011 10:21:05 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QR3L5-0008Da-6Z for bug-gnu-emacs@gnu.org; Mon, 30 May 2011 10:21:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QR3L4-0001lZ-63 for bug-gnu-emacs@gnu.org; Mon, 30 May 2011 10:21:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58357) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QR3L3-0001lU-UE for bug-gnu-emacs@gnu.org; Mon, 30 May 2011 10:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QR3L3-0001Rx-Rd; Mon, 30 May 2011 10:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Marco Pessotto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 May 2011 14:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8744 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8744-submit@debbugs.gnu.org id=B8744.13067652445549 (code B ref 8744); Mon, 30 May 2011 14:21:01 +0000 Original-Received: (at 8744) by debbugs.gnu.org; 30 May 2011 14:20:44 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QR3Km-0001RR-Fy for submit@debbugs.gnu.org; Mon, 30 May 2011 10:20:44 -0400 Original-Received: from mail-fx0-f44.google.com ([209.85.161.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QR3Kj-0001RF-Sl for 8744@debbugs.gnu.org; Mon, 30 May 2011 10:20:42 -0400 Original-Received: by fxm15 with SMTP id 15so2481300fxm.3 for <8744@debbugs.gnu.org>; Mon, 30 May 2011 07:20:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=J7Bqm5SJBiNvnFc+XaZidgd7HLz+cesCxE9BVbUiti0=; b=L1W7HnmspPfipTWlCZ85bDFBbamRckVTVeEEoQXxUPF/3kGBU2tO+cmg7KmEXnDk+d 5nd6lOMqFSW1kdmDNBhqTPC1jiX61mvA4mTOd7YKFWlU44sqxjDKZ7wUEDZH+lLhAcT6 p8ZQQuyu7iF9hNMc3+SOPHJQFIC/p2cYlM7AU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=Qdey5sJLK1yGfKTEIiujxTZaUOaiSUk9J8Z6Ah83s9YGUu/3AjmOVn0ehQ/cYStMzm FUfspJb6nuOL7Ft2TMucDDIuQ737YTfVsfmRIjyGzxI4bB7Nlr70lAjGhYc++JrA8Q+c GQjRQUa0r2PDJ9r0rPxYX8ZKKL1UlQ7uNUfr4= Original-Received: by 10.223.75.15 with SMTP id w15mr578047faj.134.1306765235932; Mon, 30 May 2011 07:20:35 -0700 (PDT) Original-Received: from localhost (93-137-160-95.adsl.net.t-com.hr [93.137.160.95]) by mx.google.com with ESMTPS id l26sm760085fah.14.2011.05.30.07.20.21 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 30 May 2011 07:20:34 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Mon, 30 May 2011 10:33:14 -0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 30 May 2011 10:21:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:46802 Archived-At: Stefan Monnier writes: >> The rcirc-decode-coding-system is by default set to 'utf-8, which is >> (obviously a valid coding system), so the test, if i understand >> correctly, would always be true. > >> My idea is that the client should try to detect automatically the >> encoding used for each message received, using as first choices the >> encodings set by the user. That's what all the major IRC clients do (like >> irssi and weechat). > > IIUC that's exactly what you'll get if you set > rcirc-decode-coding-system to `undecided'. > > > Stefan I tested this a bit and you're right. A line of documentation wouldn't harm, anyway. Something like: @@ -302,7 +302,9 @@ Called with 5 arguments, PROCESS, SENDER, RESPONSE, TARGET and TEXT." :group 'rcirc) (defcustom rcirc-decode-coding-system 'utf-8 - "Coding system used to decode incoming irc messages." + "Coding system used to decode incoming irc messages. +Set to 'undecided if you want the encoding of the incoming +messages autodetected" :type 'coding-system :group 'rcirc) Bests -- Marco