From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: UCS-2BE Date: Sat, 02 Sep 2006 10:27:24 +0900 Message-ID: References: <878xl5x4lr.fsf@jurta.org> <44F6A74A.9040708@gnu.org> <44F6BC5B.8010504@gnu.org> <87ac5ko50j.fsf@jurta.org> <87fyfb6uy5.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1157160535 9989 80.91.229.2 (2 Sep 2006 01:28:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 2 Sep 2006 01:28:55 +0000 (UTC) Cc: schwab@suse.de, emacs-devel@gnu.org, mituharu@math.s.chiba-u.ac.jp, jasonr@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 02 03:28:52 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GJKJX-0007Ia-Uw for ged-emacs-devel@m.gmane.org; Sat, 02 Sep 2006 03:28:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GJKJX-0000wC-Gf for ged-emacs-devel@m.gmane.org; Fri, 01 Sep 2006 21:28:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GJKJL-0000vp-4J for emacs-devel@gnu.org; Fri, 01 Sep 2006 21:28:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GJKJH-0000vI-3l for emacs-devel@gnu.org; Fri, 01 Sep 2006 21:28:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GJKJG-0000vA-Vl for emacs-devel@gnu.org; Fri, 01 Sep 2006 21:28:35 -0400 Original-Received: from [150.29.246.133] (helo=mx1.aist.go.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GJKTC-0005gO-BS; Fri, 01 Sep 2006 21:38:50 -0400 Original-Received: from smtp3.aist.go.jp ([150.29.246.12]) by mx1.aist.go.jp with ESMTP id k821ST5E005272; Sat, 2 Sep 2006 10:28:29 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id k821STXu024906; Sat, 2 Sep 2006 10:28:29 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1GJKI8-0000Bc-00; Sat, 02 Sep 2006 10:27:24 +0900 Original-To: Juri Linkov In-reply-to: <87fyfb6uy5.fsf@jurta.org> (message from Juri Linkov on Sat, 02 Sep 2006 02:45:33 +0300) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) 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:59243 Archived-At: In article <87fyfb6uy5.fsf@jurta.org>, Juri Linkov writes: > > It seems that UCS-2BE is not a mis-label of UTF-16BE, then, > > it seems that treating it as a subset (not using surrogate > > pair) of UTF-16BE (as done in iconv) is the right thing. > I have the same understanding. Ok. > > I'll try to implement it (and others) in emacs-unicode-2. > Is it reasonable to use the iconv library in Emacs (to not reimplement > its encodings)? We can use iconv for certain encodings, but not for all. And, the code for handling variants of UCS/UTF is fairly short as you see in iconv. In addition, we anyway need data in etc/charsets for decode-char/encode-char/map-charset-chars functions. So, I think it's simpler to have encoder/decoder in Emacs itself. --- Kenichi Handa handa@m17n.org