GNU bug report logs -
#44349
28.0.50; Assertion failure on macOS when resizing frame
Previous Next
Reported by: Philipp <p.stephani2 <at> gmail.com>
Date: Sat, 31 Oct 2020 15:53:01 UTC
Severity: normal
Found in versions 27.1, 28.0.50
Fixed in version 28.1
Done: Alan Third <alan <at> idiocy.org>
Bug is archived. No further changes may be made.
Full log
Message #37 received at 44349 <at> debbugs.gnu.org (full text, mbox):
> Date: Fri, 27 Nov 2020 22:24:29 +0000
> From: Alan Third <alan <at> idiocy.org>
> Cc: Philipp Stephani <p.stephani2 <at> gmail.com>, 44349 <at> debbugs.gnu.org
>
> > I don't see why we would want to enforce that, it sounds like a grave
> > limitation. Maybe I'm missing some background here. The version we
> > have on emacs-27 does support non-ASCII characters in the format.
>
> Patch attached.
>
> I can't see any other special cases that need to be handled and all my
> tests worked, so I think this is all that's needed.
Thanks! Can we add tests for this?
> + /* doprnt_non_null_end doesn't know about multibyte
> + characters so can truncate format in the middle of one.
> + If that happens just ignore that character. */
Is this because the buffer size is measured in characters, not bytes?
Or are there other situations where this could happen? Can you give
an example?
Silently ignoring parts of input sounds ... unusual, so I wonder what
would it take to avoid that. How did the old code avoid this problem?
This bug report was last modified 4 years and 228 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.