bugGNU TeXmacs - Bugs: bug #50279, pdf checking fails in unix if file...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #50279: pdf checking fails in unix if file path contains spaces

Submitter:  Philippe Joyez <pjoyez>
Submitted:  Sat 11 Feb 2017 02:11:15 PM UTC
   
 
Category:  None Priority:  5 - Normal
Item Group:  Error Status:  Fixed
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  None Release: 
Fixed Release:  None Fixed Release: 
Keywords: 

Tue 26 Sep 2017 02:12:45 PM UTC, comment #1: 

fixed in r10833

Philippe Joyez <pjoyez>
Group Member
Sat 11 Feb 2017 02:11:15 PM UTC, original submission:  

If the option "check exported files for correctness" for pdf export is checked, then, gs_check generates an error when there are spaces in the path to the file (even when the pdf is correct):

TeXmacs] convert-error, for file <my file path with spaces>.pdf
TeXmacs] convert-error, GPL Ghostscript 9.18: Unrecoverable error, exit code 1
TeXmacs] convert-error,

There is no error in the windows version. Trying to quote the file string in gs_check by using raw_quote(concretize(doc)) or even raw_quote(sys_concretize(doc)) instead of just sys_concretize(doc) doesn't fix it.

It seems this occurs because whitespaces are not properly handled in

unix_system (array<string> arg, array<int> fd_in, array<string> str_in, array<int> fd_out, array<string*> str_out)

in unix_sys_utils.cpp. This would likely affect any other function calling this function.


Philippe Joyez <pjoyez>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pjoyez (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-09-26 pjoyez StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code