Bug#903407: evince: Fail to generate valid print job for files with '&' in the name

Kit Haines khaines at mit.edu
Mon Jul 9 17:50:35 BST 2018


Package: evince
Version: 3.22.1-3+deb9u1
Severity: normal

Dear Maintainer,

(I've replaced my legal name with 'Legal Name' here, since I don't use
it.  My legal name has no special characters nor ampersand in them).

I'm trying to print a document named "Legal Name - Option Cancel &
Reissue Agreement.pdf"; but when I click print, I get the error (on
the commandline):

kit at gelnora:~/Downloads$ evince Legal\ Name\ -\ Option\ Cancel\ \&\ Reissue\ Agreement.pdf

** (evince:2460): WARNING **: Unimplemented annotation: POPPLER_ANNOT_INK, please post a bug report in Evince bugzilla (http://bugzilla.gnome.org) with a testcase.

** (evince:2460): WARNING **: Unimplemented annotation: POPPLER_ANNOT_INK, please post a bug report in Evince bugzilla (http://bugzilla.gnome.org) with a testcase.

(evince:2460): Gtk-WARNING **: Allocating size to EvSidebar 0x5632f76dc560 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?

(evince:2460): Gtk-WARNING **: Failed to set text '<b>Printing job “Legal Name - Option Cancel & Reissue Agreement.pdf”</b>' from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &

(evince:2460): Gtk-WARNING **: Failed to set text '<b>Printing job “Legal Name - Option Cancel & Reissue Agreement.pdf”</b>' from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &

---

This is inconvenient because of the filter on the printer at my
office.  I need to set the printer name to the approved document to
print.  I do not have this error when I copy the file to print
`NoName.pdf'.

I expected evince to escape the file name for me.

-- System Information:
Debian Release: 9.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-6-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages evince depends on:
ii  dconf-gsettings-backend [gsettings-backend]  0.26.0-2+b1
ii  evince-common                                3.22.1-3+deb9u1
ii  gsettings-desktop-schemas                    3.22.0-1
ii  libatk1.0-0                                  2.22.0-1
ii  libc6                                        2.24-11+deb9u3
ii  libcairo-gobject2                            1.14.8-1
ii  libcairo2                                    1.14.8-1
ii  libevdocument3-4                             3.22.1-3+deb9u1
ii  libevview3-3                                 3.22.1-3+deb9u1
ii  libgdk-pixbuf2.0-0                           2.36.5-2+deb9u2
ii  libglib2.0-0                                 2.50.3-2
ii  libgnome-desktop-3-12                        3.22.2-1
ii  libgtk-3-0                                   3.22.11-1
ii  libnautilus-extension1a                      3.22.3-1+deb9u1
ii  libpango-1.0-0                               1.40.5-1
ii  libsecret-1-0                                0.18.5-3.1
ii  shared-mime-info                             1.8-1

Versions of packages evince recommends:
ii  dbus-user-session [default-dbus-session-bus]  1.10.26-0+deb9u1
ii  dbus-x11 [dbus-session-bus]                   1.10.26-0+deb9u1

Versions of packages evince suggests:
ii  gvfs             1.30.4-1
pn  nautilus-sendto  <none>
ii  poppler-data     0.4.7-8
pn  unrar            <none>

-- no debconf information


More information about the pkg-gnome-maintainers mailing list