From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Spillner Newsgroups: gmane.emacs.bugs Subject: bug#33344: 26.1; doc-view bounding-box recognition doesn't work on path names with spaces Date: Sun, 11 Nov 2018 12:36:04 +0100 Message-ID: <2721782.Y6SdopJXAr@calvin> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Trace: blaine.gmane.org 1541940991 19154 195.159.176.226 (11 Nov 2018 12:56:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Nov 2018 12:56:31 +0000 (UTC) To: 33344@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 11 13:56:27 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLpHv-0004qc-1p for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Nov 2018 13:56:27 +0100 Original-Received: from localhost ([::1]:41956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLpK1-0003gG-KM for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Nov 2018 07:58:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLpJY-00039n-GJ for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 07:58:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gLpJT-0001Nb-S8 for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 07:58:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41122) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gLpJT-0001NI-Nq for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 07:58:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gLpJT-0005R3-Mi for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 07:58:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Spillner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Nov 2018 12:58:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.154194103720810 (code B ref -1); Sun, 11 Nov 2018 12:58:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Nov 2018 12:57:17 +0000 Original-Received: from localhost ([127.0.0.1]:45378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLpIj-0005PV-BV for submit@debbugs.gnu.org; Sun, 11 Nov 2018 07:57:17 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48547) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLo79-0001aW-Qg for submit@debbugs.gnu.org; Sun, 11 Nov 2018 06:41:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gLo73-0006ii-SY for submit@debbugs.gnu.org; Sun, 11 Nov 2018 06:41:10 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36789) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gLo73-0006hB-LW for submit@debbugs.gnu.org; Sun, 11 Nov 2018 06:41:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLo72-0001zo-TJ for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 06:41:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gLo70-0006Rn-7l for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 06:41:08 -0500 Original-Received: from mout.web.de ([212.227.17.11]:39979) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gLo6z-0006J1-So for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 06:41:06 -0500 Original-Received: from calvin.localnet ([89.247.1.205]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Lo0V2-1fowGl0bbE-00g2aa for ; Sun, 11 Nov 2018 12:41:03 +0100 X-Provags-ID: V03:K1:4TP/TfyHAnXNpiMd8rnw1cR81G93+ZPZYE5Ck4yfJ0mrrp1hbA+ ck91Lw/mctZmicnB0hMweCYZQOoVOaJ4LTKd+sdOl4NI/A/qGN0vW8uRaISKCsgHjkOb7X0 DF0jtoCso1/bUCgZEoresyIx01OufxLs+Q/EI9vS4uj3jdYwBL7ureygjjC4HAtWtJkQ5Ty +5yPwL/K3j6TNcApRtSiw== X-UI-Out-Filterresults: notjunk:1;V01:K0:jt2rLl1mTsc=:4muo6IxedWNUeklRQGXEK5 wrYx7DIvcBUDtJ4VgX7GK/EvKsOztEMOBQhnhKj9CGHqU9lhJ3mNTocIoPN/edpcubP900UJT uSALURtIbtJq54hH8Ff09QubVtyITRiA8VYP7qQCUEnKxpQo0F4DPM/3g1nL4PnW0JayuyBmX /M+a/vkEc3zyfpCmSx6FkHp2TnhPWf0O0yXmFZ7t7P8bxPqcizbx4oQuT3x/lTfGxZxrf70BQ 05eSFg6W7b0Lz8MTEa6H3rB2a2yEFE7qGsEOeZjtBDoitTQv4x1HkpVkbFb8SWxmh4ePbYjN/ ZK+6S1cQb0AvYrSAQFDEMwDUbFf7xeg6ZlccZy0Ykl6gGtf7P4GjykHYU/CC0sEnteOjykZj/ DN/IPKNduaKh3IQycjHc/+MnNoDSS+2FRw21/TmD+a6qr66QTvJRu2p1vAINEXrDH1TOB5ilF Fjp7hI2S+oBhEofMn+JE/oKrPT4UxEiUmUyuO4pkLBTlw0JHCk7BbilFiB0q9pMdSuz7nO4g+ 4ZwC9wqLfCfjS+9yo2aTJ85H1iZCFWrXXWw/qjoOTQ+AEWqKRrvl2mwDCGgKxR165pozoS6Ni jF2UL2Ke+mfZoaTZEaUM/1UxulxSlPmO/3ZyW8POh3EjxRwQSqyGzESCgGoqzZUv39r26WibQ J50z8AKRunv0VY+W+Hvw1oAdO7mbm0Fsl2X6MAGILRW5WWtwdpAACa/iMGEsm4lQDYNnwJ1lT kJVZxw8UGPN7uYu3HarjA523FBEv9J4MiCIY+9ZPFg8Pc/hmB9SeFBX90PyM68G9Ju3iC0Cn X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Sun, 11 Nov 2018 07:57:16 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:152293 Archived-At: Hi, in doc-view.el, line 1215, ghostscript is called via shell to grep the bounding box of a ps or pdf-file. In line 1218, the last %s (representing the filename) is used unquoted. Therefore, whenever the filename or the directory pointing to this file has spaces in its name gs won't be able to find it and determine a bounding box. Please change line 1218 from (format "-dFirstPage=%s -dLastPage=%s %s" to (format "-dFirstPage=%s -dLastPage=%s \"%s\"" Thank you!