Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
adc2fb8a
Commit
adc2fb8a
authored
May 23, 2015
by
Steve Dower
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #24268: Fix import naming when loading extension modules. Patch by Petr Viktorin.
parent
c7792160
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
Python/dynload_dl.c
Python/dynload_dl.c
+1
-1
Python/dynload_hpux.c
Python/dynload_hpux.c
+2
-2
Python/dynload_next.c
Python/dynload_next.c
+1
-1
No files found.
Python/dynload_dl.c
View file @
adc2fb8a
...
...
@@ -18,6 +18,6 @@ dl_funcptr _PyImport_FindSharedFuncptr(const char *prefix,
{
char
funcname
[
258
];
PyOS_snprintf
(
funcname
,
sizeof
(
funcname
),
"%20s_%.200s"
,
prefix
,
shortname
);
PyOS_snprintf
(
funcname
,
sizeof
(
funcname
),
"%
.
20s_%.200s"
,
prefix
,
shortname
);
return
dl_loadmod
(
Py_GetProgramName
(),
pathname
,
funcname
);
}
Python/dynload_hpux.c
View file @
adc2fb8a
...
...
@@ -8,9 +8,9 @@
#include "importdl.h"
#if defined(__hp9000s300)
#define FUNCNAME_PATTERN "_%20s_%.200s"
#define FUNCNAME_PATTERN "_%
.
20s_%.200s"
#else
#define FUNCNAME_PATTERN "%20s_%.200s"
#define FUNCNAME_PATTERN "%
.
20s_%.200s"
#endif
const
char
*
_PyImport_DynLoadFiletab
[]
=
{
SHLIB_EXT
,
NULL
};
...
...
Python/dynload_next.c
View file @
adc2fb8a
...
...
@@ -40,7 +40,7 @@ dl_funcptr _PyImport_FindSharedFuncptr(const char *prefix,
const
char
*
errString
;
char
errBuf
[
512
];
PyOS_snprintf
(
funcname
,
sizeof
(
funcname
),
"_%20s_%.200s"
,
prefix
,
shortname
);
PyOS_snprintf
(
funcname
,
sizeof
(
funcname
),
"_%
.
20s_%.200s"
,
prefix
,
shortname
);
#ifdef USE_DYLD_GLOBAL_NAMESPACE
if
(
NSIsSymbolNameDefined
(
funcname
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment