[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9389: 23.3.50; unencodable-char-position has buffer relocation probl
From: |
Kazuhiro Ito |
Subject: |
bug#9389: 23.3.50; unencodable-char-position has buffer relocation problem |
Date: |
Thu, 15 Dec 2011 21:30:06 +0900 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/23.3.50 (i386-mingw-nt6.1.7601) MULE/6.0 (HANACHIRUSATO) |
> > When I start precompiled Windows binary with -Q and evaluate below
> > code, I have unexpected result.
>
> > (with-temp-buffer
> > (insert (make-string 16 ?A))
> > (insert #x80)
> > (unencodable-char-position 1 18 'ctext-unix))
>
> > -> 13 (Emacs 23.1)
> > -> 5 (Emacs 23.3)
>
> > If I evaluate it twice, it returns expected result (17).
>
> > I think the cause of the problem is similar to bug#9318.
> > unencodable-char-position uses char_charset(), which could cause a
> > relocation of buffes. After using it, pointers must be updated as
> > needed.
>
> You are right. I've just installed the attached patch
> (which is a little bit different from yours).
I confirmed the problem was fixed. Thank you.
--
Kazuhiro Ito