Issue 508 in psutil: Windows 8 UTF-8 username decoding problem

5 views
Skip to first unread message

psu...@googlecode.com

unread,
May 27, 2014, 5:18:49 AM5/27/14
to psutil-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 508 by szigeti....@gmail.com: Windows 8 UTF-8 username decoding
problem
http://code.google.com/p/psutil/issues/detail?id=508

What steps will reproduce the problem?
1. install python 3.4 and psutil 2.1.1 on Windows 8
2. create system_infos.py file with the following line:
import psutil
user_info=psutil.users()
print(str(user_info))
3. python system_infos.py


What is the expected output?


What do you see instead?
Traceback (most recent call last):
...
File "c:\Python34\lib\site-packages\psutil\__init__.py", line 1815, in
users
return _psplatform.users()
return net_io_counters(pernic)
File "c:\Python34\lib\site-packages\psutil\_pswindows.py", line 184, in
users
rawlist = cext.users()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf3 in position 3:
invalid
continuation byte

C:\Documents and Settings\Alsómocsolád 3>


What version of psutil are you using?
2.1.1

What Python version?
3.4

On what operating system?
Windows 8

Is it 32bit or 64bit version?
64bit

Please provide any additional information below.
This problem is same as the previously solved ticket.
(https://code.google.com/p/psutil/issues/detail?id=446)
Please replace the non UNICODE characters with '?' character.

Problems is here:
https://github.com/giampaolo/psutil/blob/master/psutil/_psutil_windows.c#L2748

and I think it should be also same problem here:
https://github.com/giampaolo/psutil/blob/master/psutil/_psutil_windows.c#L1413

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

psu...@googlecode.com

unread,
May 27, 2014, 7:01:43 AM5/27/14
to psutil-...@googlegroups.com

Comment #1 on issue 508 by g.rodola: Windows 8 UTF-8 username decoding
problem
http://code.google.com/p/psutil/issues/detail?id=508

psutil project has been migrated to github. Can you please open a ticket
here? https://github.com/giampaolo/psutil/issues?state=open

psu...@googlecode.com

unread,
May 28, 2014, 9:14:41 AM5/28/14
to psutil-...@googlegroups.com

Comment #2 on issue 508 by szigeti....@gmail.com: Windows 8 UTF-8 username
decoding problem
http://code.google.com/p/psutil/issues/detail?id=508

I did it.
https://github.com/giampaolo/psutil/issues/508
Reply all
Reply to author
Forward
0 new messages