Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
To: jidanni@jidanni.org
Cc: bugs@gnus.org, ding@gnus.org
Subject: Re: Unknown charset: gbk
Date: Mon, 08 Oct 2007 20:15:19 +0200	[thread overview]
Message-ID: <v97ilxeamg.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <87abqt668d.fsf@jidanni.org> (jidanni@jidanni.org's message of "Mon, 08 Oct 2007 22:17:22 +0800")

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/



  reply	other threads:[~2007-10-08 18:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-08 14:17 jidanni
2007-10-08 18:15 ` Reiner Steib [this message]
2007-10-10 18:02   ` Reiner Steib
2007-10-18 21:40     ` Reiner Steib
2007-10-19  3:01     ` William Xu
2007-10-19  7:33       ` Katsumi Yamaoka
2007-10-19  8:18         ` William Xu
2007-10-19  9:31           ` Katsumi Yamaoka
2007-10-19 10:26             ` Katsumi Yamaoka
2007-10-19 11:01             ` William Xu
2007-10-19 21:51               ` jidanni
2007-10-22  7:11                 ` Katsumi Yamaoka
2007-10-22 18:44                   ` Reiner Steib
2007-10-22 22:38                     ` Katsumi Yamaoka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v97ilxeamg.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=bugs@gnus.org \
    --cc=ding@gnus.org \
    --cc=jidanni@jidanni.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).