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: suggestion: function: buffer-bytes Date: Mon, 09 Jul 2007 11:44:47 +0900 Message-ID: References: <18054.62174.507770.924924@gargle.gargle.HOWL> <18055.5127.154758.705881@gargle.gargle.HOWL> <18055.59548.547994.901837@gargle.gargle.HOWL> <18059.52092.157098.225984@gargle.gargle.HOWL> NNTP-Posting-Host: lo.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 1183949113 4885 80.91.229.12 (9 Jul 2007 02:45:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 Jul 2007 02:45:13 +0000 (UTC) Cc: emacs-devel@gnu.org, raman@users.sourceforge.net To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 09 04:45:10 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 1I7jFL-0004GF-N2 for ged-emacs-devel@m.gmane.org; Mon, 09 Jul 2007 04:45:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I7jFL-0006Lw-0W for ged-emacs-devel@m.gmane.org; Sun, 08 Jul 2007 22:45:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I7jFG-0006Lg-Rz for emacs-devel@gnu.org; Sun, 08 Jul 2007 22:45:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I7jFF-0006L4-6P for emacs-devel@gnu.org; Sun, 08 Jul 2007 22:45:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I7jFF-0006L1-3A for emacs-devel@gnu.org; Sun, 08 Jul 2007 22:45:01 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I7jFE-0002HU-CA for emacs-devel@gnu.org; Sun, 08 Jul 2007 22:45:00 -0400 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id l692irRg026626; Mon, 9 Jul 2007 11:44:53 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id l692iqhW024108; Mon, 9 Jul 2007 11:44:52 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id l692ilNU001511; Mon, 9 Jul 2007 11:44:47 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.67) (envelope-from ) id 1I7jF1-0002Nl-B8; Mon, 09 Jul 2007 11:44:47 +0900 In-reply-to: (message from Stefan Monnier on Thu, 05 Jul 2007 10:42:31 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.0 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: Solaris 8 (1) 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:74485 Archived-At: In article , Stefan Monnier writes: > > But for the use case I needed, namely someone composing blog > > entries using nxml-mode, > > and then building up an http post message from what they created, > > the position-bytes solution does work. > If it worked in some case, it was only by accident, unless they specifically > decided to use emacs-mule as the coding system for their file (and to switch > wholesale to utf-8 at the exact time they upgrade their Emacs), which would > be rather unusual. Right. By the way, currently emacs-mule uses 2-bytes, for instance, for Latin-1 characters, and UTF-8 also uses 2-bytes for them. So, in the case of sending a Latin-1 text to a process with UTF-8, position-bytes solution works just by chance. --- Kenichi Handa handa@m17n.org