From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79702 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: IMAP charset confusion Date: Sun, 21 Aug 2011 23:17:49 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1313961595 30723 80.91.229.12 (21 Aug 2011 21:19:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 21 Aug 2011 21:19:55 +0000 (UTC) Cc: Katsumi Yamaoka To: ding@gnus.org Original-X-From: ding-owner+M27996@lists.math.uh.edu Sun Aug 21 23:19:48 2011 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.69) (envelope-from ) id 1QvFQp-0001Zs-JK for ding-account@gmane.org; Sun, 21 Aug 2011 23:19:47 +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 1QvFPK-0004xN-6C; Sun, 21 Aug 2011 16:18:14 -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 1QvFPH-0004x9-B8 for ding@lists.math.uh.edu; Sun, 21 Aug 2011 16:18:11 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QvFPF-0007KF-Sx for ding@lists.math.uh.edu; Sun, 21 Aug 2011 16:18:10 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QvFPE-000839-Al for ding@gnus.org; Sun, 21 Aug 2011 23:18:08 +0200 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QvFP2-0000yL-Vh; Sun, 21 Aug 2011 23:17:57 +0200 User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAALVBMVEVfBi9TVtJHABdouZl8 EEdbOJCu+8aQCjk7AiM/ABY+ABVQABZeHWIvARxXcLki/hXCAAABZklEQVQ4jWWSoW7DMBCGzQaC ovKAshRNytSR8OCCPkEko4GwgJE9QB5gitQXqFRpCjUZaDRSOikgRpX2HLPPd/bZNf303f/7bFHI 6qO3R01nzY7I9+3zkwXvaneJwEZWAPpsOl84KIzSo3LmIP8LCiMGFBKVTrFhBlilcYoqvSIOuYlv X0kZSRGzUfayAtALtSVF/EZKNpWoiPWQKCMCPUN8+5MoQlvFNH4hJYAjb2yLIdBzpHyhYgDFN5Qy IoB437gXLh4AzKLGXbY9IcB4piB4UOwsABAfFIgHsNh4o2DjTpUI9M3O4o1PCCB+E/ZiZjkA8fyS JYHBKncW/4mA4qmx2iHQQ9TYzCKwxko2EXDxQVEeDK6xVzxYk8YeLPb2/JI6mlWEjxRAHB/Acjvy xgEkCgOxwoBZGCpNArCYbOsUkFI3CfDKNQWwY6fEQNNerimAX2FWWTcJIOXtOwWkPAD3kndZ/wN0 P3xIdri0OwAAAABJRU5ErkJggg== X-Now-Playing: David Grubbs's _Hybrid Song Box 4_: "Hybrid Song Box 4" X-MailScanner-ID: 1QvFP2-0000yL-Vh MailScanner-NULL-Check: 1314566277.10079@WPlFUWq/KskW0e6UaN1JPA X-Spam-Status: No X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79702 Archived-At: I just tried copying a message to an nnimap group with non-ASCII characters, and it wasn't a pretty sight. Basically, I gave the name as "h=EFllo", and it was created as "h llo" on the server. The problem seems to have something to do with double-encoding names. Before calling `-request-create-group', `gnus-read-move-group-name' does this: (setq encoded (mm-encode-coding-string to-newsgroup (gnus-group-name-charset to-method to-newsgroup))) Which does this:=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 (encode-coding-string "h=EFllo" 'iso-8859-1) "h\357llo" nnimap then encodes this in utf7: (utf7-encode (encode-coding-string "h=EFllo" 'iso-8859-1) t) "h&ACA-llo" While we should have: (utf7-encode "h=EFllo" 'iso-8859-1) "h&AO8-llo" (utf7-decode "h&AO8-llo" t) "h=EFllo" Katsumi, you seemed to introduce the encoding stuff in 2007, for good reasons, I'm sure. :-) But here we have a backend that really knows what charset it wants to use (the standard defines utf-7), so I'm not sure what the solution here is. Hm... would it make sense to have `gnus-group-name-charset' just return nil for all nnimap groups? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/