{"action":"created","issue":{"url":"https://api.github.com/repos/Bitmessage/PyBitmessage/issues/872","repository_url":"https://api.github.com/repos/Bitmessage/PyBitmessage","labels_url":"https://api.github.com/repos/Bitmessage/PyBitmessage/issues/872/labels{/name}","comments_url":"https://api.github.com/repos/Bitmessage/PyBitmessage/issues/872/comments","events_url":"https://api.github.com/repos/Bitmessage/PyBitmessage/issues/872/events","html_url":"https://github.com/Bitmessage/PyBitmessage/issues/872","id":160253010,"number":872,"title":"Failed to set locale","user":{"login":"vinctux","id":9408266,"avatar_url":"https://avatars.githubusercontent.com/u/9408266?v=3","gravatar_id":"","url":"https://api.github.com/users/vinctux","html_url":"https://github.com/vinctux","followers_url":"https://api.github.com/users/vinctux/followers","following_url":"https://api.github.com/users/vinctux/following{/other_user}","gists_url":"https://api.github.com/users/vinctux/gists{/gist_id}","starred_url":"https://api.github.com/users/vinctux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinctux/subscriptions","organizations_url":"https://api.github.com/users/vinctux/orgs","repos_url":"https://api.github.com/users/vinctux/repos","events_url":"https://api.github.com/users/vinctux/events{/privacy}","received_events_url":"https://api.github.com/users/vinctux/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-14T18:36:05Z","updated_at":"2016-06-14T18:55:34Z","closed_at":null,"body":"Hi, while running the latest master branch, I encountered the following error:\r\n```\r\nERROR - Failed to set locale to en_US.ISO8859-1\r\n```\r\n\r\nA quick lookup with `locale -a` showed that my system has many locales, but none matching the required one. Although a bit weird, as the line, causing the error, namely:\r\n```python\r\npythonlocale.setlocale(pythonlocale.LC_ALL, lang)\r\n```\r\nis calling only `pythonlocale.LC_ALL` which eventually is turned into `en_US.ISO8859-1` by Python's `locale.py`. So is it a Python-and-my-system-related bug or somewhat else, like a PyQT issue?"},"comment":{"url":"https://api.github.com/repos/Bitmessage/PyBitmessage/issues/comments/225981172","html_url":"https://github.com/Bitmessage/PyBitmessage/issues/872#issuecomment-225981172","issue_url":"https://api.github.com/repos/Bitmessage/PyBitmessage/issues/872","id":225981172,"user":{"login":"PeterSurda","id":3815204,"avatar_url":"https://avatars.githubusercontent.com/u/3815204?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterSurda","html_url":"https://github.com/PeterSurda","followers_url":"https://api.github.com/users/PeterSurda/followers","following_url":"https://api.github.com/users/PeterSurda/following{/other_user}","gists_url":"https://api.github.com/users/PeterSurda/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterSurda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterSurda/subscriptions","organizations_url":"https://api.github.com/users/PeterSurda/orgs","repos_url":"https://api.github.com/users/PeterSurda/repos","events_url":"https://api.github.com/users/PeterSurda/events{/privacy}","received_events_url":"https://api.github.com/users/PeterSurda/received_events","type":"User","site_admin":false},"created_at":"2016-06-14T18:55:34Z","updated_at":"2016-06-14T18:55:34Z","body":"Hi,\r\n\r\nthis is a known bug (it does not try UTF-8 but defaults to the default locale encoding), I just haven't opened a ticket. You can work around it in the meantim by using locale-gen to generate the locale that's missing."}}
{"actor":{"display_login":"PeterSurda"}}