From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wolfgang Jenkner Newsgroups: gmane.emacs.bugs Subject: bug#20783: 25.0.50; [PATCH] byte-to-position has internal off-by-one bug Date: Thu, 11 Jun 2015 18:41:35 +0200 Message-ID: <85k2vaxkn4.fsf@iznogoud.viz> References: <85fv5za8vv.fsf@iznogoud.viz> <83vbevsctb.fsf@gnu.org> <85oakmxn4i.fsf@iznogoud.viz> <83bngms03b.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1434041003 8554 80.91.229.3 (11 Jun 2015 16:43:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Jun 2015 16:43:23 +0000 (UTC) Cc: 20783@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 11 18:43:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z35ZQ-0000tV-8a for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Jun 2015 18:43:12 +0200 Original-Received: from localhost ([::1]:47722 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z35ZP-0003eH-ES for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Jun 2015 12:43:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z35ZL-0003do-86 for bug-gnu-emacs@gnu.org; Thu, 11 Jun 2015 12:43:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z35ZG-0007Xi-8N for bug-gnu-emacs@gnu.org; Thu, 11 Jun 2015 12:43:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z35ZG-0007Xc-5A for bug-gnu-emacs@gnu.org; Thu, 11 Jun 2015 12:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z35ZF-0008Va-N7 for bug-gnu-emacs@gnu.org; Thu, 11 Jun 2015 12:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Wolfgang Jenkner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Jun 2015 16:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20783 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 20783-submit@debbugs.gnu.org id=B20783.143404095632672 (code B ref 20783); Thu, 11 Jun 2015 16:43:01 +0000 Original-Received: (at 20783) by debbugs.gnu.org; 11 Jun 2015 16:42:36 +0000 Original-Received: from localhost ([127.0.0.1]:50968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z35Yp-0008Ut-Oq for submit@debbugs.gnu.org; Thu, 11 Jun 2015 12:42:36 -0400 Original-Received: from b2bfep15.mx.upcmail.net ([62.179.121.60]:44943) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z35Ym-0008Ud-Ul for 20783@debbugs.gnu.org; Thu, 11 Jun 2015 12:42:33 -0400 Original-Received: from edge12.upcmail.net ([192.168.13.82]) by b2bfep16.mx.upcmail.net (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20150611164120.CESR8910.b2bfep16-int.chello.at@edge12.upcmail.net> for <20783@debbugs.gnu.org>; Thu, 11 Jun 2015 18:41:20 +0200 Original-Received: from iznogoud.viz ([85.127.86.146]) by edge12.upcmail.net with edge id f4hb1q01K39SPx90C4hbAL; Thu, 11 Jun 2015 18:41:36 +0200 X-SourceIP: 85.127.86.146 Original-Received: from wolfgang by iznogoud.viz with local (Exim 4.85 (FreeBSD)) (envelope-from ) id 1Z35Xr-0001Hr-HE; Thu, 11 Jun 2015 18:41:35 +0200 In-Reply-To: <83bngms03b.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 11 Jun 2015 19:04:24 +0300") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (berkeley-unix) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:103832 Archived-At: On Thu, Jun 11 2015, Eli Zaretskii wrote: > But please add a comment there about > BYTE_TO_CHAR expecting byte positions that are on a character > boundary, Wouldn't it make sense to add this to the comment before the definition of BYTE_TO_CHAR instead (or to both)?