GNU bug report logs -
#28824
26.0.90; display of pbm images broken?
Previous Next
Reported by: "Roland Winkler" <winkler <at> gnu.org>
Date: Sat, 14 Oct 2017 02:12:02 UTC
Severity: normal
Found in version 26.0.90
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#28824: 26.0.90; display of pbm images broken?
which was filed against the emacs package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 28824 <at> debbugs.gnu.org.
--
28824: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=28824
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
[Message part 3 (text/plain, inline)]
Eli Zaretskii wrote:
>> From: Andy Moreton <andrewjmoreton <at> gmail.com>
>> Date: Sun, 15 Oct 2017 18:42:27 +0100
>>
>> Eli can decide if reverting the previous "unsigned char" -> "char"
>> changes is a better fix.
>
> Looks like going back to unsigned should be cleaner, but I'd like to
> hear what Paul thinks.
Andy's fixes look good to me. Going back to unsigned would result in several
pointer casts that are more dangerous than converting to unsigned. They can be
further improved by encapsulating this stuff into a function, and I installed
the attached (the second one is Andy's other fix, which I installed in his name).
I looked for related bugs in image.c (i.e., caused by my earlier patch) and did
not find any.
[0001-Fix-regression-in-display-of-PPM-images.patch (text/x-patch, attachment)]
[0002-Don-t-reject-PBM-header-whitespace-unnecessarily.patch (text/x-patch, attachment)]
[Message part 6 (message/rfc822, inline)]
start emacs -Q
evaluate (arg FILE-OR-DATA of create-image should point to a pbm image)
(defun foo ()
(interactive)
(insert-image (create-image "~/foo.pbm")))
M-x foo
This displays the image with emacs 25, but not with emacs 26.0.90:
there is just a small bounding box (smaller than the image) where
the image should be displayed. It is my understanding that pbm
images do not depend on external libraries. (Anyway, I built emacs
25 on the same machine without problems.)
In GNU Emacs 26.0.90 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
of 2017-10-13 built on regnitz
Windowing system distributor 'The X.Org Foundation', version 11.0.11804000
System Description: Ubuntu 16.04.3 LTS
Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT
ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 LCMS2
Important settings:
value of $LC_COLLATE: C
value of $LANG: en_US.utf8
value of $XMODIFIERS:
locale-coding-system: utf-8-unix
Major mode: Fundamental
Minor modes in effect:
display-time-mode: t
tooltip-mode: t
global-eldoc-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
buffer-read-only: t
line-number-mode: t
transient-mark-mode: t
This bug report was last modified 7 years and 278 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.