[issue3380] In mercurial/pure/osutil.py, avoid use of msvcrt dll
Christophe Gouiran
bugs at mercurial.selenic.com
Wed Apr 18 12:06:54 UTC 2012
New submission from Christophe Gouiran <christophe.gouiran at eurocopter.com>:
Hello, I had the problem with Mercurial 2.1.2 on Windows platform.
We are currently a Mercurial backend in an application compiled with mingw
gcc 4.4.0.
We therefore embeds a Python 2.7.2 interpreter (we are linked with official
Python27.dll)
The problem arises when Mercurial tries to use osutil.posixfile() function:
as we use gcc, the following line leads to an application exit:
fp = _fdopen(fd, fpmode);
(I suppose because FILE struct doesn't have the same alignment in msvc and
libgcc)
So, we felt back to use the Python implementation of osutil in
mercurial/pure/osutil.py
But we got about the same problem.
Indeed, at following line there is an attemp to load msvc90.dll:
_crt = ctypes.PyDLL(_crtname())
The call to ctypes.PyDLL("msvcr90.dll") currently fails because of the usage
of gcc.
----------
messages: 19654
nosy: BeChris
priority: wish
status: unread
title: In mercurial/pure/osutil.py, avoid use of msvcrt dll
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3380>
____________________________________________________
More information about the Mercurial-devel
mailing list