From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: Bug 130397 Date: Mon, 10 Jan 2005 22:16:13 +0200 Message-ID: <01c4f751$Blat.v2.2.2$60a73900@zahav.net.il> References: <28878.1105029010@ichips.intel.com> <01c4f6cf$Blat.v2.2.2$5c4e1220@zahav.net.il> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1105389399 6944 80.91.229.6 (10 Jan 2005 20:36:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Jan 2005 20:36:39 +0000 (UTC) Cc: geoff@cs.hmc.edu, 130397@bugs.debian.org, agustin.martin@hispalinux.es, lionel@mamane.lu, emacs-devel@gnu.org, kstevens@ichips.intel.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 10 21:36:22 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Co63o-0007sL-00 for ; Mon, 10 Jan 2005 21:22:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Co6FK-0005J7-M3 for ged-emacs-devel@m.gmane.org; Mon, 10 Jan 2005 15:34:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Co6Ed-000547-5B for emacs-devel@gnu.org; Mon, 10 Jan 2005 15:33:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Co6EU-0004zw-D4 for emacs-devel@gnu.org; Mon, 10 Jan 2005 15:33:50 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Co6ET-0004z0-K7 for emacs-devel@gnu.org; Mon, 10 Jan 2005 15:33:45 -0500 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Co61o-00070j-FK; Mon, 10 Jan 2005 15:20:40 -0500 Original-Received: from zaretski (IGLD-83-130-209-249.inter.net.il [83.130.209.249]) by romy.inter.net.il (MOS 3.5.6-GR) with ESMTP id AGC54109 (AUTH halo1); Mon, 10 Jan 2005 22:18:55 +0200 (IST) Original-To: David Kastrup X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2 In-reply-to: (message from David Kastrup on Mon, 10 Jan 2005 10:09:41 +0100) 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: main.gmane.org gmane.emacs.devel:32107 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32107 > Cc: snogglethorpe@gmail.com, miles@gnu.org, geoff@cs.hmc.edu, > 130397@bugs.debian.org, agustin.martin@hispalinux.es, > lionel@mamane.lu, emacs-devel@gnu.org, kstevens@ichips.intel.com > From: David Kastrup > Date: Mon, 10 Jan 2005 10:09:41 +0100 > > Just encode the line to utf-8, find the correct point in the byte > string, cut off the line there, convert back and check the length of > the string. This isn't needed, I think: the number of bytes in the UTF-8 encoding of a certain Unicode codepoint is a very simple function of the codepoint. > This works unless you are in the middle of a character. I think this cannot happen, since spelling always works on character boundaries.