{"action":"created","issue":{"url":"https://api.github.com/repos/jmathai/elodie/issues/167","repository_url":"https://api.github.com/repos/jmathai/elodie","labels_url":"https://api.github.com/repos/jmathai/elodie/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/jmathai/elodie/issues/167/comments","events_url":"https://api.github.com/repos/jmathai/elodie/issues/167/events","html_url":"https://github.com/jmathai/elodie/issues/167","id":198062605,"number":167,"title":"Crash if source path contains unicode character","user":{"login":"vorg","id":171001,"avatar_url":"https://avatars.githubusercontent.com/u/171001?v=3","gravatar_id":"","url":"https://api.github.com/users/vorg","html_url":"https://github.com/vorg","followers_url":"https://api.github.com/users/vorg/followers","following_url":"https://api.github.com/users/vorg/following{/other_user}","gists_url":"https://api.github.com/users/vorg/gists{/gist_id}","starred_url":"https://api.github.com/users/vorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vorg/subscriptions","organizations_url":"https://api.github.com/users/vorg/orgs","repos_url":"https://api.github.com/users/vorg/repos","events_url":"https://api.github.com/users/vorg/events{/privacy}","received_events_url":"https://api.github.com/users/vorg/received_events","type":"User","site_admin":false},"labels":[{"id":258439090,"url":"https://api.github.com/repos/jmathai/elodie/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-12-29T20:15:47Z","updated_at":"2016-12-30T19:08:17Z","closed_at":null,"body":"I'm trying to import photos exported from iPhoto and one of the folders has Islandic characters in it that causes import to crash `\"2016-03 Iceland/Suðurland - Iceland, 2\"`\r\n\r\n```\r\n./elodie.py import --destination=\"/Volumes/BACKUP2TB01/Photos\" --source=\"/Volumes/BACKUP2TB01/Photos ToDo/2016-03 Iceland/Suðurland - Iceland, 2\"\r\nTraceback (most recent call last):\r\n  File \"./elodie.py\", line 301, in <module>\r\n    main()\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/core.py\", line 716, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/core.py\", line 696, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/core.py\", line 1060, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/core.py\", line 889, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/core.py\", line 534, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"./elodie.py\", line 111, in _import\r\n    trash, allow_duplicates)\r\n  File \"./elodie.py\", line 38, in import_file\r\n    _file = _decode(_file)\r\n  File \"/Users/vorg/Dev/elodie/elodie/compatability.py\", line 3, in _decode\r\n    return string.decode(encoding)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/utf_8.py\", line 16, in decode\r\n    return codecs.utf_8_decode(input, errors, True)\r\nUnicodeEncodeError: 'ascii' codec can't encode character u'\\xf0' in position 51: ordinal not in range(128)\r\n```"},"comment":{"url":"https://api.github.com/repos/jmathai/elodie/issues/comments/269809912","html_url":"https://github.com/jmathai/elodie/issues/167#issuecomment-269809912","issue_url":"https://api.github.com/repos/jmathai/elodie/issues/167","id":269809912,"user":{"login":"jmathai","id":6384,"avatar_url":"https://avatars.githubusercontent.com/u/6384?v=3","gravatar_id":"","url":"https://api.github.com/users/jmathai","html_url":"https://github.com/jmathai","followers_url":"https://api.github.com/users/jmathai/followers","following_url":"https://api.github.com/users/jmathai/following{/other_user}","gists_url":"https://api.github.com/users/jmathai/gists{/gist_id}","starred_url":"https://api.github.com/users/jmathai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmathai/subscriptions","organizations_url":"https://api.github.com/users/jmathai/orgs","repos_url":"https://api.github.com/users/jmathai/repos","events_url":"https://api.github.com/users/jmathai/events{/privacy}","received_events_url":"https://api.github.com/users/jmathai/received_events","type":"User","site_admin":false},"created_at":"2016-12-30T19:08:17Z","updated_at":"2016-12-30T19:08:17Z","body":"@misterpipine I'm confused as to why the master branch fails for path names with unicode. What's on master is the latest of what we verified and wrote tests for. And I get the same response as you did so I'm not sure why I'm unable to reproduce it.\r\n\r\n```\r\n>>> import sys\r\n>>> print sys.getdefaultencoding() #python\r\nascii\r\n>>> print sys.getfilesystemencoding() #OS\r\nutf-8\r\n```\r\n\r\n... unless I'm misunderstanding."}}
{"actor":{"display_login":"jmathai"}}