Our Windows users have been reporting that running of TeXFiles.sh is
failing because the file name is not quoted. The attached patches resolves
the problem for both 1.3.x and 1.4.x.

Committing now as they're obviously correct.

-- 
Angus
Index: src/frontends/controllers/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/ChangeLog,v
retrieving revision 1.273.2.24
diff -u -p -r1.273.2.24 ChangeLog
--- src/frontends/controllers/ChangeLog	4 Jul 2005 13:24:41 -0000	1.273.2.24
+++ src/frontends/controllers/ChangeLog	7 Sep 2005 08:55:57 -0000
@@ -1,3 +1,8 @@
+2005-08-10  Angus Leeming  <[EMAIL PROTECTED]>
+
+	* tex_helpers.C (rescanTexStyles): Quote the path to TeXFiles.sh
+	to avoid problems with "paths with spaces".
+
 2005-07-04  Jürgen Spitzmüller  <[EMAIL PROTECTED]>
 
 	* ControlToc.[Ch]: new method getGuiName, which is used by the frontends 
Index: src/frontends/controllers/tex_helpers.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/tex_helpers.C,v
retrieving revision 1.7.2.3
diff -u -p -r1.7.2.3 tex_helpers.C
--- src/frontends/controllers/tex_helpers.C	28 Jan 2005 15:12:57 -0000	1.7.2.3
+++ src/frontends/controllers/tex_helpers.C	7 Sep 2005 08:55:57 -0000
@@ -53,7 +53,8 @@ void rescanTexStyles()
 	Path p(lyx::package().user_support());
 	Systemcall one;
 	one.startscript(Systemcall::Wait,
-			"sh " + LibFileSearch("scripts", "TeXFiles.sh"));
+			"sh " +
+			QuoteName(LibFileSearch("scripts", "TeXFiles.sh")));
 }
 
 
Index: src/frontends/controllers/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/ChangeLog,v
retrieving revision 1.494
diff -u -p -r1.494 ChangeLog
--- src/frontends/controllers/ChangeLog	7 Aug 2005 21:30:21 -0000	1.494
+++ src/frontends/controllers/ChangeLog	7 Sep 2005 08:55:43 -0000
@@ -1,3 +1,8 @@
+2005-08-10  Angus Leeming  <[EMAIL PROTECTED]>
+
+	* tex_helpers.C (rescanTexStyles): Quote the path to TeXFiles.sh
+	to avoid problems with "paths with spaces".
+
 2005-08-07  Angus Leeming  <[EMAIL PROTECTED]>
 
 	* ControlExternal.C (origin_gui_str): ensure that the strings
Index: src/frontends/controllers/tex_helpers.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/tex_helpers.C,v
retrieving revision 1.25
diff -u -p -r1.25 tex_helpers.C
--- src/frontends/controllers/tex_helpers.C	27 Jul 2005 17:46:14 -0000	1.25
+++ src/frontends/controllers/tex_helpers.C	7 Sep 2005 08:55:43 -0000
@@ -37,6 +37,7 @@ using support::LibFileSearch;
 using support::OnlyFilename;
 using support::package;
 using support::Path;
+using support::QuoteName;
 using support::split;
 using support::Systemcall;
 using support::token;
@@ -51,7 +52,8 @@ void rescanTexStyles()
 	Path p(package().user_support());
 	Systemcall one;
 	one.startscript(Systemcall::Wait,
-			"sh " + LibFileSearch("scripts", "TeXFiles.sh"));
+			"sh " +
+			QuoteName(LibFileSearch("scripts", "TeXFiles.sh")));
 }
 
 

Reply via email to