[New-bugs-announce] [issue9605] os.getlogin() should use PEP 383 decoding to match the pwd module

David Watson report at bugs.python.org
Sat Aug 14 21:13:54 CEST 2010


New submission from David Watson <baikie at users.sourceforge.net>:

The pwd module decodes usernames with PyUnicode_DecodeFSDefault(), and the LOGNAME environment variable (suggested as an alternative to getlogin()) is decoded the same way.  Attaching a patch to use PyUnicode_DecodeFSDefault() in getlogin().

----------
components: Extension Modules
files: getlogin-pep383.diff
keywords: patch
messages: 113922
nosy: baikie
priority: normal
severity: normal
status: open
title: os.getlogin() should use PEP 383 decoding to match the pwd module
type: behavior
versions: Python 3.1, Python 3.2
Added file: http://bugs.python.org/file18531/getlogin-pep383.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9605>
_______________________________________


More information about the New-bugs-announce mailing list