In LyX-140, lines 594 and 597 of package.C.in (which only apply to Mac OS X), contain some extraneous characters (\302 and \240) in place of each occurrence of what should be " " (space). Compilation fails as is; the patch below fixes it for me. (The extraneous character shows up in a text editor for me as " "; it doesn't show up in the patch I've pasted below.)

A similar problem occurs in package.C for LyX-13x, at lines 577 and 580; again, I've copied the patch below.

Bennett

Patch for LyX-140:

Index: src/support/package.C.in
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/support/package.C.in,v
retrieving revision 1.2
diff -u -p -u -r1.2 package.C.in
--- src/support/package.C.in    2005/01/12 12:25:30     1.2
+++ src/support/package.C.in    2005/01/12 16:02:32
@@ -591,10 +591,10 @@ string const get_default_user_support_di
        if (error_code != 0)
                return string();

- char store[PATH_MAX + 1];
+ char store[PATH_MAX + 1];
OSStatus const status_code =
FSRefMakePath(&fsref,
- reinterpret_cast<UInt8*>(store), PATH_MAX);
+ reinterpret_cast<UInt8*>(store), PATH_MAX);
if (status_code != 0)
return string();




Patch for LyX-13x:

Index: package.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/support/Attic/package.C,v
retrieving revision 1.1.2.1
diff -u -p -u -r1.1.2.1 package.C
--- package.C   2005/01/10 19:17:31     1.1.2.1
+++ package.C   2005/01/12 17:12:15
@@ -574,10 +574,10 @@ string const get_default_user_support_di
        if (error_code != 0)
                return string();

- char store[PATH_MAX + 1];
+ char store[PATH_MAX + 1];
OSStatus const status_code =
FSRefMakePath(&fsref,
- reinterpret_cast<UInt8*>(store), PATH_MAX);
+ reinterpret_cast<UInt8*>(store), PATH_MAX);
if (status_code != 0)
return string();




Reply via email to