{"action":"created","issue":{"url":"https://api.github.com/repos/paramiko/paramiko/issues/986","repository_url":"https://api.github.com/repos/paramiko/paramiko","labels_url":"https://api.github.com/repos/paramiko/paramiko/issues/986/labels{/name}","comments_url":"https://api.github.com/repos/paramiko/paramiko/issues/986/comments","events_url":"https://api.github.com/repos/paramiko/paramiko/issues/986/events","html_url":"https://github.com/paramiko/paramiko/pull/986","id":234020610,"number":986,"title":"Fix failure in listdir when server uses a locale (1.17)","user":{"login":"bz2","id":1188565,"avatar_url":"https://avatars1.githubusercontent.com/u/1188565?v=3","gravatar_id":"","url":"https://api.github.com/users/bz2","html_url":"https://github.com/bz2","followers_url":"https://api.github.com/users/bz2/followers","following_url":"https://api.github.com/users/bz2/following{/other_user}","gists_url":"https://api.github.com/users/bz2/gists{/gist_id}","starred_url":"https://api.github.com/users/bz2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bz2/subscriptions","organizations_url":"https://api.github.com/users/bz2/orgs","repos_url":"https://api.github.com/users/bz2/repos","events_url":"https://api.github.com/users/bz2/events{/privacy}","received_events_url":"https://api.github.com/users/bz2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-06T20:51:06Z","updated_at":"2017-06-06T22:31:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/paramiko/paramiko/pulls/986","html_url":"https://github.com/paramiko/paramiko/pull/986","diff_url":"https://github.com/paramiko/paramiko/pull/986.diff","patch_url":"https://github.com/paramiko/paramiko/pull/986.patch"},"body":"Fixes #985\r\n\r\n`SFTPAttributes` uses the locale-aware `%b` directive for the abbreviated month name with `time.strftime`, but was not decoding the result on Python 2.7.\r\n\r\nAdd a `strftime` alias in `py3compat` that will always return unicode, and resolve the mixing of bytes and text in `SFTPAttributes` methods.\r\n\r\nAdd a test at the `listdir` level, and a more specific test for the `SFTPAttributes` `asbytes` method."},"comment":{"url":"https://api.github.com/repos/paramiko/paramiko/issues/comments/306636204","html_url":"https://github.com/paramiko/paramiko/pull/986#issuecomment-306636204","issue_url":"https://api.github.com/repos/paramiko/paramiko/issues/986","id":306636204,"user":{"login":"bz2","id":1188565,"avatar_url":"https://avatars1.githubusercontent.com/u/1188565?v=3","gravatar_id":"","url":"https://api.github.com/users/bz2","html_url":"https://github.com/bz2","followers_url":"https://api.github.com/users/bz2/followers","following_url":"https://api.github.com/users/bz2/following{/other_user}","gists_url":"https://api.github.com/users/bz2/gists{/gist_id}","starred_url":"https://api.github.com/users/bz2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bz2/subscriptions","organizations_url":"https://api.github.com/users/bz2/orgs","repos_url":"https://api.github.com/users/bz2/repos","events_url":"https://api.github.com/users/bz2/events{/privacy}","received_events_url":"https://api.github.com/users/bz2/received_events","type":"User","site_admin":false},"created_at":"2017-06-06T22:31:42Z","updated_at":"2017-06-06T22:31:42Z","body":"Tried enabling the new tests for ci based on [the Travis docs](https://docs.travis-ci.com/user/common-build-problems/#system-required-language-pack-isnt-installed) suggestion:\r\n\r\n> ` - sudo apt-get update && sudo apt-get --reinstall install -qq language-pack-en language-pack-de`\r\n\r\nBut [that failed](https://travis-ci.org/paramiko/paramiko/builds/240159488) with:\r\n\r\n> This job is running on container-based infrastructure, which does not allow use of 'sudo', setuid, and setgid executables.\r\n\r\nNot sure if they have a way of enabling locale support in containers. It's not really essential."}}
{"actor":{"display_login":"bz2"}}