New submission from David Watson <bai...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue9605>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to