From: Kazuhiro Ito <kzhr@d1.dion.ne.jp>
To: Kenichi Handa <handa@m17n.org>
Cc: 9389@debbugs.gnu.org
Subject: bug#9389: 23.3.50; unencodable-char-position has buffer relocation problem
Date: Thu, 15 Dec 2011 21:30:06 +0900 [thread overview]
Message-ID: <20111215123014.145554B803A@msa106.auone-net.jp> (raw)
In-Reply-To: <87d3bv5m51.fsf@m17n.org>
> > 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
prev parent reply other threads:[~2011-12-15 12:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-28 0:07 bug#9389: 23.3.50; unencodable-char-position has buffer relocation problem Kazuhiro Ito
2011-12-11 12:27 ` Kenichi Handa
2011-12-15 12:30 ` Kazuhiro Ito [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111215123014.145554B803A@msa106.auone-net.jp \
--to=kzhr@d1.dion.ne.jp \
--cc=9389@debbugs.gnu.org \
--cc=handa@m17n.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.