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 08:42:39 +0200 Message-ID: <8762oselk0.fsf@universe.krase.net> References: <87sjrxnxyx.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 1306737797 27291 80.91.229.12 (30 May 2011 06:43:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 May 2011 06:43:17 +0000 (UTC) Cc: 8744@debbugs.gnu.org To: Leo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 30 08:43:12 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 1QQwBv-0005x0-EI for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 May 2011 08:43:07 +0200 Original-Received: from localhost ([::1]:39594 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQwBv-00016W-3R for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 May 2011 02:43:07 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQwBs-00016R-C3 for bug-gnu-emacs@gnu.org; Mon, 30 May 2011 02:43:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQwBr-0006SF-Ah for bug-gnu-emacs@gnu.org; Mon, 30 May 2011 02:43:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52521) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQwBr-0006SA-82 for bug-gnu-emacs@gnu.org; Mon, 30 May 2011 02:43:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QQwBq-0007fO-Ht; Mon, 30 May 2011 02:43:02 -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 06:43:02 +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.130673777329454 (code B ref 8744); Mon, 30 May 2011 06:43:02 +0000 Original-Received: (at 8744) by debbugs.gnu.org; 30 May 2011 06:42:53 +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 1QQwBg-0007f1-Ro for submit@debbugs.gnu.org; Mon, 30 May 2011 02:42:53 -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 1QQwBe-0007ep-U0 for 8744@debbugs.gnu.org; Mon, 30 May 2011 02:42:51 -0400 Original-Received: by fxm15 with SMTP id 15so2278344fxm.3 for <8744@debbugs.gnu.org>; Sun, 29 May 2011 23:42:45 -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=LUp0djuagCjlKyxTxxgBvWxNtNEbVycbKmeiZinRoAs=; b=XRPNQ9Qi0CNQWYOeT/JAGG4MaegW5O99pbV179Qh6MOLGpwaOEMAieRn1bzlXn2xyD jL6+dvh07kYXfOP0UzFCREec58bCNonHrDQEXRmptmZMtSp3k432PNpN3UR4eukkmGSV ecUhNp/Sbp5YuN0Zboyv1PVGulJTX8L9AaJpY= 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=O4jNoqKdq8bxRf03yZbQHzcoeH4qZo7ATiBT9xBO/JNtpJfVEiQroE7hyStuKIhHZ7 tzo9GIeNi1L3aDMFKXTBA1nvu/u9nEhKewi8gAOMke+HkGm7tPYZ0rMqtYw8v4KWrXnz dorHTiVtUFLNAaY65Gm7AvGF5AH6sbucA4mns= Original-Received: by 10.223.6.9 with SMTP id 9mr5160489fax.68.1306737765111; Sun, 29 May 2011 23:42:45 -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 x15sm608457fah.22.2011.05.29.23.42.42 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 29 May 2011 23:42:43 -0700 (PDT) In-Reply-To: (Leo's message of "Mon, 30 May 2011 10:39:07 +0800") 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 02:43:02 -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:46795 Archived-At: Leo writes: > On 2011-05-30 02:49 +0800, Marco Pessotto wrote: >> Couldn't this patch be modified as: > [snipped 23 lines] > > I just read > http://en.wikipedia.org/wiki/Internet_Relay_Chat#Character_encoding, so > this seems to be a good change. > > Stefan, what do you think? > > Should I make the change so that if rcirc-decode-coding-system is a > coding-system, it is used, otherwise detect the coding-system? > 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). Cheers -- Marco