{"action":"created","issue":{"url":"https://api.github.com/repos/nir0s/distro/issues/151","repository_url":"https://api.github.com/repos/nir0s/distro","labels_url":"https://api.github.com/repos/nir0s/distro/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/nir0s/distro/issues/151/comments","events_url":"https://api.github.com/repos/nir0s/distro/issues/151/events","html_url":"https://github.com/nir0s/distro/issues/151","id":190435525,"number":151,"title":"distro crashes when non-ASCII character appears in lsb_release","user":{"login":"adamjstewart","id":12021217,"avatar_url":"https://avatars.githubusercontent.com/u/12021217?v=3","gravatar_id":"","url":"https://api.github.com/users/adamjstewart","html_url":"https://github.com/adamjstewart","followers_url":"https://api.github.com/users/adamjstewart/followers","following_url":"https://api.github.com/users/adamjstewart/following{/other_user}","gists_url":"https://api.github.com/users/adamjstewart/gists{/gist_id}","starred_url":"https://api.github.com/users/adamjstewart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamjstewart/subscriptions","organizations_url":"https://api.github.com/users/adamjstewart/orgs","repos_url":"https://api.github.com/users/adamjstewart/repos","events_url":"https://api.github.com/users/adamjstewart/events{/privacy}","received_events_url":"https://api.github.com/users/adamjstewart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-18T22:19:16Z","updated_at":"2016-11-22T22:01:37Z","closed_at":null,"body":"We're using the `distro` package for linux distribution detection in a package manager called [Spack](https://github.com/LLNL/spack). Unfortunately, one of our users discovered a bug that causes distro to crash with the following error message:\r\n```\r\nFile \"distro.py\", line 1049, in \r\n    _distroi = LinuxDistribution()\r\nFile \"distro.py\", line 595, in init\r\n    if include_lsb else {}\r\nFile \"distro.py\", line 921, in _lsb_release_info\r\n    out, err = out.decode('ascii'), err.decode('ascii')\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 250: ordinal not in range(128)\r\n```\r\nHere is their lsb_release:\r\n```\r\n$ lsb_release -a\r\nLSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch\r\nDistributor ID: Fedora\r\nDescription: Fedora release 19 (Schrödinger’s Cat)\r\nRelease: 19\r\nCodename: Schrödinger’sCat\r\n```\r\nI assume the problem is that `distro` can't handle the `ö` in Schrödinger’s Cat."},"comment":{"url":"https://api.github.com/repos/nir0s/distro/issues/comments/262379024","html_url":"https://github.com/nir0s/distro/issues/151#issuecomment-262379024","issue_url":"https://api.github.com/repos/nir0s/distro/issues/151","id":262379024,"user":{"login":"tgamblin","id":299842,"avatar_url":"https://avatars.githubusercontent.com/u/299842?v=3","gravatar_id":"","url":"https://api.github.com/users/tgamblin","html_url":"https://github.com/tgamblin","followers_url":"https://api.github.com/users/tgamblin/followers","following_url":"https://api.github.com/users/tgamblin/following{/other_user}","gists_url":"https://api.github.com/users/tgamblin/gists{/gist_id}","starred_url":"https://api.github.com/users/tgamblin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgamblin/subscriptions","organizations_url":"https://api.github.com/users/tgamblin/orgs","repos_url":"https://api.github.com/users/tgamblin/repos","events_url":"https://api.github.com/users/tgamblin/events{/privacy}","received_events_url":"https://api.github.com/users/tgamblin/received_events","type":"User","site_admin":false},"created_at":"2016-11-22T22:01:37Z","updated_at":"2016-11-22T22:01:37Z","body":"@adamjstewart we can probably close this"}}
{"actor":{"display_login":"tgamblin"}}