James -
> >> Then this appears to be a difference (bug?) in your libc. This is not
> >> the case with glibc 2.7 or 2.8 (the two systems I can currently test
> >> on). Those error with ENOENT (as specified by SUS[0]).
> >
> > I'm on FreeBSD. I used this test program:
> >
> > #include
> > #incl
On Sat, Nov 15, 2008 at 6:52 AM, Bram Moolenaar <[EMAIL PROTECTED]> wrote:
>
> James -
>
>> Then this appears to be a difference (bug?) in your libc. This is not
>> the case with glibc 2.7 or 2.8 (the two systems I can currently test
>> on). Those error with ENOENT (as specified by SUS[0]).
>
> I
James -
> >> Either way, I see two options:
> >>
> >> 1) Save sys.path before calling PySys_SetArgv and restore it afterward.
> >> 2) Prune the first element of sys.path after calling PySys_SetArgv.
> >>
> >> We know that PySys_SetArgv always adds an element to the front of
> >> sys.path and we k
On Fri, Nov 14, 2008 at 3:42 PM, Bram Moolenaar <[EMAIL PROTECTED]> wrote:
>
> James -
>
>> Either way, I see two options:
>>
>> 1) Save sys.path before calling PySys_SetArgv and restore it afterward.
>> 2) Prune the first element of sys.path after calling PySys_SetArgv.
>>
>> We know that PySys_Se
James -
> > > This is incorrect. In Vim's current code, PySys_SetArgv is called with
> > > an argv that is simply an empty string (and a terminating NULL
> > > sentinel). This causes sys.path's first element to be the empty string,
> > > thus causing any Python import statements to use Vim's cu
On Thu, Nov 13, 2008 at 11:23:07AM +0100, Bram Moolenaar wrote:
>
> James -
>
> > This is incorrect. In Vim's current code, PySys_SetArgv is called with
> > an argv that is simply an empty string (and a terminating NULL
> > sentinel). This causes sys.path's first element to be the empty string,
James -
> > > Vim's python interface calls PySys_SetArgv with an argv[0] that doesn't
> > > resolve to a filename. This causes Python to prepend sys.path with an
> > > empty string which, due to Python's use of relative imports, allows the
> > > possibility to run arbitrary code on the user's sy
On Wed, Nov 12, 2008 at 12:34:16PM +0100, Bram Moolenaar wrote:
>
> James -
>
> > Vim's python interface calls PySys_SetArgv with an argv[0] that doesn't
> > resolve to a filename. This causes Python to prepend sys.path with an
> > empty string which, due to Python's use of relative imports, all
James -
> > > Vim's python interface calls PySys_SetArgv with an argv[0] that doesn't
> > > resolve to a filename. This causes Python to prepend sys.path with an
> > > empty string which, due to Python's use of relative imports, allows the
> > > possibility to run arbitrary code on the user's sy
On Mon, Nov 03, 2008 at 10:23:27PM +0100, Bram Moolenaar wrote:
>
> James -
>
> > Bram,
> >
> > Vim's python interface calls PySys_SetArgv with an argv[0] that doesn't
> > resolve to a filename. This causes Python to prepend sys.path with an
> > empty string which, due to Python's use of relati
10 matches
Mail list logo