{"action":"created","issue":{"url":"https://api.github.com/repos/giampaolo/psutil/issues/655","labels_url":"https://api.github.com/repos/giampaolo/psutil/issues/655/labels{/name}","comments_url":"https://api.github.com/repos/giampaolo/psutil/issues/655/comments","events_url":"https://api.github.com/repos/giampaolo/psutil/issues/655/events","html_url":"https://github.com/giampaolo/psutil/issues/655","id":95043511,"number":655,"title":"Inconsistent usage of TCHAR, WCHAR, LPSTR, LPWSTR, LPCTSTR, char, etc","user":{"login":"mrjefftang","id":1735064,"avatar_url":"https://avatars.githubusercontent.com/u/1735064?v=3","gravatar_id":"","url":"https://api.github.com/users/mrjefftang","html_url":"https://github.com/mrjefftang","followers_url":"https://api.github.com/users/mrjefftang/followers","following_url":"https://api.github.com/users/mrjefftang/following{/other_user}","gists_url":"https://api.github.com/users/mrjefftang/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjefftang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjefftang/subscriptions","organizations_url":"https://api.github.com/users/mrjefftang/orgs","repos_url":"https://api.github.com/users/mrjefftang/repos","events_url":"https://api.github.com/users/mrjefftang/events{/privacy}","received_events_url":"https://api.github.com/users/mrjefftang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-07-14T21:18:36Z","updated_at":"2015-08-26T13:29:08Z","closed_at":null,"body":"The Windows section uses all sorts of different string types.  It's not clear to me without delving through it thoroughly to see if these types are the correct usage.\r\n\r\nThis inconsistency is likely to lead to some unicode issues like that seen in #652 .   There may be parts of the psutil API for Windows which may not function correctly when given a multibyte character string."},"comment":{"url":"https://api.github.com/repos/giampaolo/psutil/issues/comments/135020374","html_url":"https://github.com/giampaolo/psutil/issues/655#issuecomment-135020374","issue_url":"https://api.github.com/repos/giampaolo/psutil/issues/655","id":135020374,"user":{"login":"giampaolo","id":681260,"avatar_url":"https://avatars.githubusercontent.com/u/681260?v=3","gravatar_id":"","url":"https://api.github.com/users/giampaolo","html_url":"https://github.com/giampaolo","followers_url":"https://api.github.com/users/giampaolo/followers","following_url":"https://api.github.com/users/giampaolo/following{/other_user}","gists_url":"https://api.github.com/users/giampaolo/gists{/gist_id}","starred_url":"https://api.github.com/users/giampaolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giampaolo/subscriptions","organizations_url":"https://api.github.com/users/giampaolo/orgs","repos_url":"https://api.github.com/users/giampaolo/repos","events_url":"https://api.github.com/users/giampaolo/events{/privacy}","received_events_url":"https://api.github.com/users/giampaolo/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T13:29:08Z","updated_at":"2015-08-26T13:29:08Z","body":"Thinking back about the approach we decided to use here I take back the proposal of returning `unicode` all the time on Python 2. It's a too disruptive change and may break a lot of code out there. I think a better approach is to return `str` in case of ASCII strings, else `unicode`.\r\n"}}