From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65388 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: Unknown charset: gbk Date: Mon, 08 Oct 2007 20:15:19 +0200 Message-ID: References: <87abqt668d.fsf@jidanni.org> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1191867380 29306 80.91.229.12 (8 Oct 2007 18:16:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Oct 2007 18:16:20 +0000 (UTC) Cc: bugs@gnus.org, ding@gnus.org To: jidanni@jidanni.org Original-X-From: ding-owner+M13899@lists.math.uh.edu Mon Oct 08 20:16:18 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1Iex9N-0004tA-FQ for ding-account@gmane.org; Mon, 08 Oct 2007 20:16:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Iex8y-0004kR-BU; Mon, 08 Oct 2007 13:15:52 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Iex8w-0004k7-IN for ding@lists.math.uh.edu; Mon, 08 Oct 2007 13:15:50 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1Iex8q-0003dx-5F for ding@lists.math.uh.edu; Mon, 08 Oct 2007 13:15:50 -0500 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Iex8h-00019E-00; Mon, 08 Oct 2007 20:15:36 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by mail.uni-ulm.de (8.14.1/8.14.1) with ESMTP id l98IFXcZ009489; Mon, 8 Oct 2007 20:15:34 +0200 (MEST) Original-Received: from localhost (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 92AAE12CBB; Mon, 8 Oct 2007 20:15:33 +0200 (CEST) X-Face: 1;h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB;kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm;%Od (jidanni@jidanni.org's message of "Mon, 08 Oct 2007 22:17:22 +0800") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) X-DCC-INFN-TO-Metrics: poseidon 1233; Body=3 Fuz1=3 Fuz2=3 X-Virus-Scanned: by amavisd-new X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65388 Archived-At: On Mon, Oct 08 2007, jidanni@jidanni.org wrote: > Content-Type: text/plain; charset=GBK > caused > Unknown charset: gbk > so I had to use > munpack -t && iconv -f gbk part1 > to read the message. gnus-version "Gnus v5.11". To reproduce the problem and to test a fix, it would help if you'd give us the Message-ID (and newsgroup) of such articles. Hopefully fixed in CVS (trunk and v5-10) by this patch (at least in Emacs 22): --8<---------------cut here---------------start------------->8--- --- mm-util.el 04 Oct 2007 20:22:22 +0200 7.67 +++ mm-util.el 08 Oct 2007 20:06:31 +0200 @@ -253,6 +253,12 @@ ,@(when (and (not (mm-coding-system-p 'windows-31j)) (mm-coding-system-p 'cp932)) '((windows-31j . cp932))) + ;; Charset name: GBK, Charset aliases: CP936, MS936, windows-936 + ;; http://www.iana.org/assignments/charset-reg/GBK + ;; Emacs 22.1 has cp936, but not gbk, so we alias it: + ,@(when (and (not (mm-coding-system-p 'gbk)) + (mm-coding-system-p 'cp936)) + '((gbk . cp936))) ;; ISO8859-1 is ISO-8859-1 ,@(when (and (not (mm-coding-system-p 'iso8859-1)) (mm-coding-system-p 'iso-8859-1)) --8<---------------cut here---------------end--------------->8--- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/