From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Topia Newsgroups: gmane.emacs.bugs Subject: 23.0.50; utf7-decode failed with non latin-1 charactor Date: Fri, 02 Nov 2007 02:45:35 +0900 Message-ID: <87ir4lhnb4.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 1193945870 16196 80.91.229.12 (1 Nov 2007 19:37:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Nov 2007 19:37:50 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 01 20:37:52 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1InfrR-0001Pu-Im for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Nov 2007 20:37:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1InfrH-0007ba-Hw for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Nov 2007 15:37:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ine6u-0008Vu-5T for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2007 13:45:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ine6r-0008VY-R1 for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2007 13:45:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ine6r-0008VK-Hf for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2007 13:45:37 -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 1Ine6q-00015U-VH for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2007 13:45:37 -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 8C41E4F00B8; Fri, 2 Nov 2007 02:45:35 +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-Mailman-Approved-At: Thu, 01 Nov 2007 15:37:31 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16892 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) tested on lisp/gnus/utf7.el: ;;; arch-tag: 96078b55-85c7-4161-aed2-932c24b282c7 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 (BOM?) ;; Avoid versions with BOM. (= 2 (length (encode-coding-string "a" 'utf-16-be)))) 'utf-16-be) + ((and (mm-coding-system-p 'utf-16be) ; Emacs 22 and later + ;; 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 Sorry for bad English. Regards, -- Topia