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
830a4bcf
Commit
830a4bcf
authored
Nov 22, 2007
by
Christian Heimes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
os.environ contains PyUnicode instances and not PyString instances
parent
b2b62628
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Modules/posixmodule.c
Modules/posixmodule.c
+3
-3
No files found.
Modules/posixmodule.c
View file @
830a4bcf
...
...
@@ -3026,7 +3026,7 @@ posix_execve(PyObject *self, PyObject *args)
/* Omit Pseudo-Env Vars that Would Confuse Programs if Passed On */
if
(
stricmp
(
k
,
"BEGINLIBPATH"
)
!=
0
&&
stricmp
(
k
,
"ENDLIBPATH"
)
!=
0
)
{
#endif
len
=
Py
String_Size
(
key
)
+
PyString_
Size
(
val
)
+
2
;
len
=
Py
Unicode_GetSize
(
key
)
+
PyUnicode_Get
Size
(
val
)
+
2
;
p
=
PyMem_NEW
(
char
,
len
);
if
(
p
==
NULL
)
{
PyErr_NoMemory
();
...
...
@@ -3256,7 +3256,7 @@ posix_spawnve(PyObject *self, PyObject *args)
{
goto
fail_2
;
}
len
=
Py
String_Size
(
key
)
+
PyString_
Size
(
val
)
+
2
;
len
=
Py
Unicode_GetSize
(
key
)
+
PyUnicode_Get
Size
(
val
)
+
2
;
p
=
PyMem_NEW
(
char
,
len
);
if
(
p
==
NULL
)
{
PyErr_NoMemory
();
...
...
@@ -3489,7 +3489,7 @@ posix_spawnvpe(PyObject *self, PyObject *args)
{
goto
fail_2
;
}
len
=
Py
String_Size
(
key
)
+
PyString_
Size
(
val
)
+
2
;
len
=
Py
Unicode_GetSize
(
key
)
+
PyUnicode_Get
Size
(
val
)
+
2
;
p
=
PyMem_NEW
(
char
,
len
);
if
(
p
==
NULL
)
{
PyErr_NoMemory
();
...
...
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