This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Use widechar api for os.environ
Type: behavior Stage:
Components: Interpreter Core, Windows Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: theller Nosy List: christian.heimes, theller
Priority: high Keywords: patch

Created on 2007-11-08 17:38 by theller, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
posixmodule.c.diff theller, 2007-11-08 17:38
Messages (3)
msg57265 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2007-11-08 17:38
This patch uses the windows widechar apis for os.environ.  In this way,
environment variables that use umlauts can be accessed.
msg57271 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-11-08 18:10
Great work! :) I've been waiting for a fix.

Do you have time to rework PC/getpathp.c and other code related to
sys.path? It's still using the ASCII api which causes bugs like
http://bugs.python.org/issue1342
msg57274 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2007-11-08 19:36
Committed as rev 58916.

The getpath.c, sys.path, and sys.argv issues is much more difficult to
fix IMO.
If you write a testcase for THIS issue (os.environ), I'll start thinking
on them.  No promises, though.
History
Date User Action Args
2022-04-11 14:56:28adminsetgithub: 45747
2008-01-06 22:29:45adminsetkeywords: - py3k
versions: Python 3.0
2007-11-08 19:36:42thellersetstatus: open -> closed
assignee: theller
messages: + msg57274
resolution: accepted -> fixed
2007-11-08 18:10:57christian.heimessetpriority: high
resolution: accepted
messages: + msg57271
nosy: + christian.heimes
2007-11-08 17:38:31thellercreate