From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Topia Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: 23.0.50; utf7-decode failed with non latin-1 charactor Date: Fri, 02 Nov 2007 02:29:18 +0900 Message-ID: <87k5p1ho29.wl%topia@clovery.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1193942345 4042 80.91.229.12 (1 Nov 2007 18:39:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Nov 2007 18:39:05 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 01 19:39:07 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Inewc-0000Kk-3j for ged-emacs-devel@m.gmane.org; Thu, 01 Nov 2007 19:39:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1InewR-0004oW-W0 for ged-emacs-devel@m.gmane.org; Thu, 01 Nov 2007 14:38:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IndrK-0007Ee-6Q for emacs-devel@gnu.org; Thu, 01 Nov 2007 13:29:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IndrI-0007DD-Bv for emacs-devel@gnu.org; Thu, 01 Nov 2007 13:29:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IndrI-0007Cr-0B for emacs-devel@gnu.org; Thu, 01 Nov 2007 13:29:32 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IndrH-00049Z-Md for emacs-devel@gnu.org; Thu, 01 Nov 2007 13:29:31 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IndrH-0005En-A5 for emacs-pretest-bug@gnu.org; Thu, 01 Nov 2007 13:29:31 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IndrD-00048L-N0 for emacs-pretest-bug@gnu.org; Thu, 01 Nov 2007 13:29:31 -0400 Original-Received: from four-leaf.clovery.jp ([210.188.216.105] helo=mail.clovery.jp) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IndrD-000472-6l for emacs-pretest-bug@gnu.org; Thu, 01 Nov 2007 13:29:27 -0400 Original-Received: from undine.home.clovery.jp (p02408a.aiciff01.ap.so-net.ne.jp [121.2.64.138]) by mail.clovery.jp (Postfix) with ESMTP id 02A764F00B8; Fri, 2 Nov 2007 02:29:21 +0900 (JST) User-Agent: Wanderlust/2.15.5 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/23.0.50 (x86_64-unknown-linux-gnu) MULE/5.0 (SAKAKI) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Thu, 01 Nov 2007 14:38:52 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:82303 gmane.emacs.pretest.bugs:20220 Archived-At: I want to use imap's internationalized (japanese) folder name, from Wanderlust. but I see error "Unable to convert from Unicode" from utf7-u16-latin1-char-converter. You can see with this code: ;; "Sent Mail" in Japanese, imap's UTF-7 (utf7-decode "&kAFP4W4IMH8w4TD8MOs-" 'imap) so I found problem that utf7-utf-16-coding-system is nil, because: * Emacs 23 has utf-16-be, but this coding system has BOM. * utf-16-be-nosig is not found. I found utf-16-be without BOM version, utf-16be. evalute above code after (setq utf7-utf-16-coding-system 'utf-16be), no error occured. Could you modify utf7-utf-16-coding-system to add utf-16be? (defconst utf7-utf-16-coding-system (cond ((mm-coding-system-p 'utf-16-be-no-signature) ; Mule-UCS 'utf-16-be-no-signature) ((and (mm-coding-system-p 'utf-16-be) ; Emacs 21.3, Emacs 22 ;; Avoid versions with BOM. (= 2 (length (encode-coding-string "a" 'utf-16-be)))) 'utf-16-be) + ((and (mm-coding-system-p 'utf-16be) ; Emacs 23? + ;; Avoid versions with BOM. + (= 2 (length (encode-coding-string "a" 'utf-16be)))) + 'utf-16be) ((mm-coding-system-p 'utf-16-be-nosig) ; ? 'utf-16-be-nosig)) "Coding system which encodes big endian UTF-16 without a BOM signature.") In GNU Emacs 23.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.12.0) of 2007-11-01 on undine configured using `configure '--prefix=/usr/opt/emacs/23.0.50' '--with-x-toolkit=gtk' '--with-x' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--with-kerberos5'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: C value of $LANG: ja_JP.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Emacs-Lisp Regards, -- Topia