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

2010-08-15 Thread STINNER Victor
STINNER Victor added the comment: Commited to 3.1 as r84064 and to 3.2 as r84063. Thanks David. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

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

2010-08-14 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

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

2010-08-14 Thread David Watson
New submission from David Watson : 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(). -- compo