nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] searching for certain UTF8 characters also finds ghosts


From: Benno Schulenberg
Subject: Re: [Nano-devel] searching for certain UTF8 characters also finds ghosts
Date: Sat, 21 Mar 2015 20:02:23 +0100

Hi Mark,

On Sat, Mar 21, 2015, at 17:58, Mark Majeres wrote:
> It looks like ISSET(BACKWARDS_SEARCH) needs the same adjustment.  It's
> the line right above your current fix.

Yes.  A better patch that handles also that case is attached.
The patch is a bit ugly, but that is because I think the stepping
should be done not here but in strstrwrapper().  But is a bit too
invasive at the moment.

> > Strangely this happens only for characters in the range
> > U+00A0 to U+00BF, which baffles me.  (I've tested it with
> > ?, ?, ?, ?, ? -- they all get doubly found -- but also
> > with ?, ?, ?, ?, ?, ?, and ? -- they all are found once.)

Hmm.  Your mail is UTF8-encoded, but these characters haven't
come across properly.  Did you see them okay?

Benno

-- 
http://www.fastmail.com - A fast, anti-spam email service.

Attachment: stepping-left-and-right-properly.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]