{"action":"created","issue":{"url":"https://api.github.com/repos/leo-editor/leo-editor/issues/140","labels_url":"https://api.github.com/repos/leo-editor/leo-editor/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/leo-editor/leo-editor/issues/140/comments","events_url":"https://api.github.com/repos/leo-editor/leo-editor/issues/140/events","html_url":"https://github.com/leo-editor/leo-editor/issues/140","id":59094839,"number":140,"title":"@clean does not preserve extended ASCII characters on read","user":{"login":"largo84","id":9388145,"avatar_url":"https://avatars.githubusercontent.com/u/9388145?v=3","gravatar_id":"","url":"https://api.github.com/users/largo84","html_url":"https://github.com/largo84","followers_url":"https://api.github.com/users/largo84/followers","following_url":"https://api.github.com/users/largo84/following{/other_user}","gists_url":"https://api.github.com/users/largo84/gists{/gist_id}","starred_url":"https://api.github.com/users/largo84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/largo84/subscriptions","organizations_url":"https://api.github.com/users/largo84/orgs","repos_url":"https://api.github.com/users/largo84/repos","events_url":"https://api.github.com/users/largo84/events{/privacy}","received_events_url":"https://api.github.com/users/largo84/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/leo-editor/leo-editor/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"edreamleo","id":592928,"avatar_url":"https://avatars.githubusercontent.com/u/592928?v=3","gravatar_id":"","url":"https://api.github.com/users/edreamleo","html_url":"https://github.com/edreamleo","followers_url":"https://api.github.com/users/edreamleo/followers","following_url":"https://api.github.com/users/edreamleo/following{/other_user}","gists_url":"https://api.github.com/users/edreamleo/gists{/gist_id}","starred_url":"https://api.github.com/users/edreamleo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edreamleo/subscriptions","organizations_url":"https://api.github.com/users/edreamleo/orgs","repos_url":"https://api.github.com/users/edreamleo/repos","events_url":"https://api.github.com/users/edreamleo/events{/privacy}","received_events_url":"https://api.github.com/users/edreamleo/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/leo-editor/leo-editor/milestones/6","html_url":"https://github.com/leo-editor/leo-editor/milestones/5.1%20b1","labels_url":"https://api.github.com/repos/leo-editor/leo-editor/milestones/6/labels","id":997362,"number":6,"title":"5.1 b1","description":null,"creator":{"login":"edreamleo","id":592928,"avatar_url":"https://avatars.githubusercontent.com/u/592928?v=3","gravatar_id":"","url":"https://api.github.com/users/edreamleo","html_url":"https://github.com/edreamleo","followers_url":"https://api.github.com/users/edreamleo/followers","following_url":"https://api.github.com/users/edreamleo/following{/other_user}","gists_url":"https://api.github.com/users/edreamleo/gists{/gist_id}","starred_url":"https://api.github.com/users/edreamleo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edreamleo/subscriptions","organizations_url":"https://api.github.com/users/edreamleo/orgs","repos_url":"https://api.github.com/users/edreamleo/repos","events_url":"https://api.github.com/users/edreamleo/events{/privacy}","received_events_url":"https://api.github.com/users/edreamleo/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":1,"state":"open","created_at":"2015-02-26T17:27:39Z","updated_at":"2015-02-28T00:27:21Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-02-26T16:09:59Z","updated_at":"2015-02-28T00:27:21Z","closed_at":"2015-02-28T00:27:21Z","body":"Many extended ASCII characters won't 'round trip' properly using @clean as compared to @file. Simple example:\r\n\r\n1) Create new @clean and @file files.\r\n2) Add one or more extended ASCII characters to each file. For example, try ASCII code 246 ÷ (the division symbol, or obelus).\r\n3) Save the file (this creates two new external files).\r\n4) View the external files in another editor (I use Notepad++). The ÷ obelus character shows up in both files as expected.\r\n5) Refresh both from disc (or close the .leo file and reopen).\r\n6) The @clean file now displays a different character (Ã· for ÷), while @file displays ÷ correctly.\r\n\r\nComment: This may be a Python version issue as this behavior does not occur on my Mac OSX installation which uses Python v2.7 (though it could be a Mac encoding difference). On my Windows PC installation, I use Python v3.3.\r\n"},"comment":{"url":"https://api.github.com/repos/leo-editor/leo-editor/issues/comments/76497954","html_url":"https://github.com/leo-editor/leo-editor/issues/140#issuecomment-76497954","issue_url":"https://api.github.com/repos/leo-editor/leo-editor/issues/140","id":76497954,"user":{"login":"edreamleo","id":592928,"avatar_url":"https://avatars.githubusercontent.com/u/592928?v=3","gravatar_id":"","url":"https://api.github.com/users/edreamleo","html_url":"https://github.com/edreamleo","followers_url":"https://api.github.com/users/edreamleo/followers","following_url":"https://api.github.com/users/edreamleo/following{/other_user}","gists_url":"https://api.github.com/users/edreamleo/gists{/gist_id}","starred_url":"https://api.github.com/users/edreamleo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edreamleo/subscriptions","organizations_url":"https://api.github.com/users/edreamleo/orgs","repos_url":"https://api.github.com/users/edreamleo/repos","events_url":"https://api.github.com/users/edreamleo/events{/privacy}","received_events_url":"https://api.github.com/users/edreamleo/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T00:27:21Z","updated_at":"2015-02-28T00:27:21Z","body":"Fixed at rev 89b56b3\r\n\r\nIn fact, this was a bug in the @file read logic! The fix was to call at.readFileToUnicode in at.readOpenFile.\r\n\r\nThe new code is enabled by the new_read_line switch in leoAtFile.py."}}