{"action":"created","issue":{"url":"https://api.github.com/repos/OpenCobolIDE/OpenCobolIDE/issues/363","repository_url":"https://api.github.com/repos/OpenCobolIDE/OpenCobolIDE","labels_url":"https://api.github.com/repos/OpenCobolIDE/OpenCobolIDE/issues/363/labels{/name}","comments_url":"https://api.github.com/repos/OpenCobolIDE/OpenCobolIDE/issues/363/comments","events_url":"https://api.github.com/repos/OpenCobolIDE/OpenCobolIDE/issues/363/events","html_url":"https://github.com/OpenCobolIDE/OpenCobolIDE/issues/363","id":182783250,"number":363,"title":"[Unhandled exception] UnicodeEncodeError","user":{"login":"Martinfx","id":1999714,"avatar_url":"https://avatars.githubusercontent.com/u/1999714?v=3","gravatar_id":"","url":"https://api.github.com/users/Martinfx","html_url":"https://github.com/Martinfx","followers_url":"https://api.github.com/users/Martinfx/followers","following_url":"https://api.github.com/users/Martinfx/following{/other_user}","gists_url":"https://api.github.com/users/Martinfx/gists{/gist_id}","starred_url":"https://api.github.com/users/Martinfx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Martinfx/subscriptions","organizations_url":"https://api.github.com/users/Martinfx/orgs","repos_url":"https://api.github.com/users/Martinfx/repos","events_url":"https://api.github.com/users/Martinfx/events{/privacy}","received_events_url":"https://api.github.com/users/Martinfx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenCobolIDE/OpenCobolIDE/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/OpenCobolIDE/OpenCobolIDE/labels/pyqode","name":"pyqode","color":"bfe5bf"}],"state":"open","locked":false,"assignee":{"login":"ColinDuquesnoy","id":1681217,"avatar_url":"https://avatars.githubusercontent.com/u/1681217?v=3","gravatar_id":"","url":"https://api.github.com/users/ColinDuquesnoy","html_url":"https://github.com/ColinDuquesnoy","followers_url":"https://api.github.com/users/ColinDuquesnoy/followers","following_url":"https://api.github.com/users/ColinDuquesnoy/following{/other_user}","gists_url":"https://api.github.com/users/ColinDuquesnoy/gists{/gist_id}","starred_url":"https://api.github.com/users/ColinDuquesnoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColinDuquesnoy/subscriptions","organizations_url":"https://api.github.com/users/ColinDuquesnoy/orgs","repos_url":"https://api.github.com/users/ColinDuquesnoy/repos","events_url":"https://api.github.com/users/ColinDuquesnoy/events{/privacy}","received_events_url":"https://api.github.com/users/ColinDuquesnoy/received_events","type":"User","site_admin":false},"assignees":[{"login":"ColinDuquesnoy","id":1681217,"avatar_url":"https://avatars.githubusercontent.com/u/1681217?v=3","gravatar_id":"","url":"https://api.github.com/users/ColinDuquesnoy","html_url":"https://github.com/ColinDuquesnoy","followers_url":"https://api.github.com/users/ColinDuquesnoy/followers","following_url":"https://api.github.com/users/ColinDuquesnoy/following{/other_user}","gists_url":"https://api.github.com/users/ColinDuquesnoy/gists{/gist_id}","starred_url":"https://api.github.com/users/ColinDuquesnoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColinDuquesnoy/subscriptions","organizations_url":"https://api.github.com/users/ColinDuquesnoy/orgs","repos_url":"https://api.github.com/users/ColinDuquesnoy/repos","events_url":"https://api.github.com/users/ColinDuquesnoy/events{/privacy}","received_events_url":"https://api.github.com/users/ColinDuquesnoy/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/OpenCobolIDE/OpenCobolIDE/milestones/35","html_url":"https://github.com/OpenCobolIDE/OpenCobolIDE/milestones/4.7.6","labels_url":"https://api.github.com/repos/OpenCobolIDE/OpenCobolIDE/milestones/35/labels","id":1967948,"number":35,"title":"4.7.6","description":null,"creator":{"login":"ColinDuquesnoy","id":1681217,"avatar_url":"https://avatars.githubusercontent.com/u/1681217?v=3","gravatar_id":"","url":"https://api.github.com/users/ColinDuquesnoy","html_url":"https://github.com/ColinDuquesnoy","followers_url":"https://api.github.com/users/ColinDuquesnoy/followers","following_url":"https://api.github.com/users/ColinDuquesnoy/following{/other_user}","gists_url":"https://api.github.com/users/ColinDuquesnoy/gists{/gist_id}","starred_url":"https://api.github.com/users/ColinDuquesnoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColinDuquesnoy/subscriptions","organizations_url":"https://api.github.com/users/ColinDuquesnoy/orgs","repos_url":"https://api.github.com/users/ColinDuquesnoy/repos","events_url":"https://api.github.com/users/ColinDuquesnoy/events{/privacy}","received_events_url":"https://api.github.com/users/ColinDuquesnoy/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":2,"state":"open","created_at":"2016-08-28T10:56:07Z","updated_at":"2016-10-16T10:57:53Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-10-13T13:02:17Z","updated_at":"2016-10-22T10:53:30Z","closed_at":null,"body":"Description\r\n----------------------------------------\r\n\r\nHello \r\nIf I write bad cobol commad ` DISPLAY W-TIMU  \" Ů ` . IDE have unhadled exception.\r\nBest regards, Maxfx\r\n\r\n\r\nTraceback\r\n----------------------------------------\r\n\r\n  File \"open_cobol_ide\\controllers\\edit.py\", line 278, in _update_status_bar_labels\r\n  File \"open_cobol_ide\\controllers\\edit.py\", line 266, in _get_cursor_pos_in_bytes\r\n  File \"c:\\python\\32-bit\\3.4\\lib\\encodings\\cp1252.py\", line 12, in encode\r\n\r\nUnicodeEncodeError: 'charmap' codec can't encode character '\\u016e' in position 29: character maps to <undefined>\r\n\r\n\r\nSystem information\r\n----------------------------------------\r\n\r\nOperating System: Windows\r\nOpenCobolIDE: 4.7.4\r\nGnuCOBOL: cobc (GNU Cobol) 1.1.0\r\nPython: 3.4.3 (32bits)\r\nQt: 5.5.1\r\nPyQt: 5.5.1\r\npyqode.core: 2.10.1\r\npyqode.cobol: 2.10.1\r\npyqode.qt: 2.10.0\r\npygments: 2.0.2\r\nQDarkStyle: 2.1\r\n\r\n\r\n\r\nApplication log\r\n----------------\r\n\r\n```\r\n14:41:49:775::INFO::15556::open_cobol_ide::version: 4.7.4\r\n14:41:49:775::INFO::15556::open_cobol_ide.app::files to open: []\r\n14:41:51:902::INFO::15556::open_cobol_ide.compilers::GnuCOBOL compiler check: success (1/1)\r\n14:41:51:902::INFO::15556::open_cobol_ide.compilers::Executable extension: .exe\r\n14:41:51:902::INFO::15556::open_cobol_ide.compilers::Module extension: .dll\r\n14:41:51:922::INFO::15556::open_cobol_ide.app::GnuCOBOL version: cobc (GNU Cobol) 1.1.0\r\n\r\n14:47:46:630::INFO::15556::open_cobol_ide.controllers.cobol::running compilation thread: ['C:\\\\Users\\\\PC\\\\OpenCobolIDE\\\\project\\\\DateAndTime.cbl']\r\n14:47:46:632::INFO::15556::open_cobol_ide.compilers::compiling C:\\Users\\PC\\OpenCobolIDE\\project\\DateAndTime.cbl\r\n14:47:47:550::INFO::15556::open_cobol_ide.compilers::binary file 'C:\\\\Users\\\\PC\\\\OpenCobolIDE\\\\project\\\\bin\\\\DateAndTime.exe' created:  True\r\n14:47:47:550::INFO::15556::open_cobol_ide.compilers::compile results: 0 - []\r\n14:47:47:557::INFO::15556::open_cobol_ide.controllers.cobol::running program: 'C:\\\\Users\\\\PC\\\\OpenCobolIDE\\\\project\\\\bin\\\\DateAndTime.exe' (working dir='C:\\\\Users\\\\PC\\\\OpenCobolIDE\\\\project\\\\bin')\r\n14:49:13:424::INFO::15556::open_cobol_ide.controllers.cobol::running compilation thread: ['C:\\\\Users\\\\PC\\\\OpenCobolIDE\\\\project\\\\DateAndTime.cbl']\r\n14:49:13:425::INFO::15556::open_cobol_ide.compilers::compiling C:\\Users\\PC\\OpenCobolIDE\\project\\DateAndTime.cbl\r\n14:49:14:357::INFO::15556::open_cobol_ide.compilers::binary file 'C:\\\\Users\\\\PC\\\\OpenCobolIDE\\\\project\\\\bin\\\\DateAndTime.exe' created:  True\r\n14:49:14:358::INFO::15556::open_cobol_ide.compilers::compile results: 0 - []\r\n14:49:14:363::INFO::15556::open_cobol_ide.controllers.cobol::running program: 'C:\\\\Users\\\\PC\\\\OpenCobolIDE\\\\project\\\\bin\\\\DateAndTime.exe' (working dir='C:\\\\Users\\\\PC\\\\OpenCobolIDE\\\\project\\\\bin')\r\n14:49:42:114::INFO::15556::open_cobol_ide.controllers.cobol::running compilation thread: ['C:\\\\Users\\\\PC\\\\OpenCobolIDE\\\\project\\\\DateAndTime.cbl']\r\n14:49:42:115::INFO::15556::open_cobol_ide.compilers::compiling C:\\Users\\PC\\OpenCobolIDE\\project\\DateAndTime.cbl\r\n14:49:43:063::INFO::15556::open_cobol_ide.compilers::binary file 'C:\\\\Users\\\\PC\\\\OpenCobolIDE\\\\project\\\\bin\\\\DateAndTime.exe' created:  True\r\n14:49:43:063::INFO::15556::open_cobol_ide.compilers::compile results: 0 - []\r\n14:49:43:069::INFO::15556::open_cobol_ide.controllers.cobol::running program: 'C:\\\\Users\\\\PC\\\\OpenCobolIDE\\\\project\\\\bin\\\\DateAndTime.exe' (working dir='C:\\\\Users\\\\PC\\\\OpenCobolIDE\\\\project\\\\bin')\r\n14:50:45:493::CRITICAL::15556::qcrash._hooks::unhandled exception:\r\n  File \"open_cobol_ide\\controllers\\edit.py\", line 278, in _update_status_bar_labels\r\n  File \"open_cobol_ide\\controllers\\edit.py\", line 266, in _get_cursor_pos_in_bytes\r\n  File \"c:\\python\\32-bit\\3.4\\lib\\encodings\\cp1252.py\", line 12, in encode\r\n\r\nUnicodeEncodeError: 'charmap' codec can't encode character '\\u016e' in position 27: character maps to <undefined>\r\n14:50:45:493::CRITICAL::15556::open_cobol_ide.app::unhandled exception:\r\n  File \"open_cobol_ide\\controllers\\edit.py\", line 278, in _update_status_bar_labels\r\n  File \"open_cobol_ide\\controllers\\edit.py\", line 266, in _get_cursor_pos_in_bytes\r\n  File \"c:\\python\\32-bit\\3.4\\lib\\encodings\\cp1252.py\", line 12, in encode\r\n\r\nUnicodeEncodeError: 'charmap' codec can't encode character '\\u016e' in position 27: character maps to <undefined>\r\n14:50:49:801::ERROR::15556::pyqode.backend::something went bad with worker <function lint at 0x053D54B0>(data={'encoding': 'cp1252', 'ignore_rules': [], 'code': '      ******************************************************************\\n      * Author:\\n      * Date:\\n      * Purpose:\\n      * Tectonics: cobc\\n      ******************************************************************\\n       IDENTIFICATION DIVISION.\\n       PROGRAM-ID. YOUR-PROGRAM-NAME.\\n       DATA DIVISION.\\n       FILE SECTION.\\n       WORKING-STORAGE SECTION.\\n           01 W-TIME PIC S9(8).\\n           01 W-DATE PIC S9(8).\\n           \\n       PROCEDURE DIVISION.\\n       MAIN-PROCEDURE.\\n            ACCEPT W-TIME FROM TIME.\\n            ACCEPT W-DATE FROM DATE.\\n            DISPLAY W-TIME \\u016e.\\n            \\n            STOP RUN.\\n       END PROGRAM YOUR-PROGRAM-NAME.\\n\\n', 'path': 'C:\\\\Users\\\\PC\\\\OpenCobolIDE\\\\project\\\\DateAndTime.cbl', 'max_line_length': 79})\r\n14:50:49:801::ERROR::15556::pyqode.backend::Traceback (most recent call last):\r\n14:50:49:801::ERROR::15556::pyqode.backend::  File \"d:\\documents\\pyqode.core\\pyqode\\core\\backend\\server.py\", line 136, in _handle\r\n14:50:49:802::ERROR::15556::pyqode.backend::  File \"open_cobol_ide\\linter.py\", line 75, in lint\r\n14:50:49:802::ERROR::15556::pyqode.backend::  File \"c:\\python\\32-bit\\3.4\\lib\\encodings\\cp1252.py\", line 19, in encode\r\n14:50:49:802::ERROR::15556::pyqode.backend::UnicodeEncodeError: 'charmap' codec can't encode character '\\u016e' in position 607: character maps to <undefined>\r\n14:50:49:815::ERROR::15556::pyqode.backend::\r\n14:50:58:773::CRITICAL::15556::qcrash._hooks::unhandled exception:\r\n  File \"open_cobol_ide\\controllers\\edit.py\", line 278, in _update_status_bar_labels\r\n  File \"open_cobol_ide\\controllers\\edit.py\", line 266, in _get_cursor_pos_in_bytes\r\n  File \"c:\\python\\32-bit\\3.4\\lib\\encodings\\cp1252.py\", line 12, in encode\r\n\r\nUnicodeEncodeError: 'charmap' codec can't encode character '\\u016e' in position 29: character maps to <undefined>\r\n14:50:58:774::CRITICAL::15556::open_cobol_ide.app::unhandled exception:\r\n  File \"open_cobol_ide\\controllers\\edit.py\", line 278, in _update_status_bar_labels\r\n  File \"open_cobol_ide\\controllers\\edit.py\", line 266, in _get_cursor_pos_in_bytes\r\n  File \"c:\\python\\32-bit\\3.4\\lib\\encodings\\cp1252.py\", line 12, in encode\r\n\r\nUnicodeEncodeError: 'charmap' codec can't encode character '\\u016e' in position 29: character maps to <undefined>\r\n14:50:59:132::ERROR::15556::pyqode.backend::something went bad with worker <function lint at 0x053D54B0>(data={'encoding': 'cp1252', 'ignore_rules': [], 'code': '      ******************************************************************\\n      * Author:\\n      * Date:\\n      * Purpose:\\n      * Tectonics: cobc\\n      ******************************************************************\\n       IDENTIFICATION DIVISION.\\n       PROGRAM-ID. YOUR-PROGRAM-NAME.\\n       DATA DIVISION.\\n       FILE SECTION.\\n       WORKING-STORAGE SECTION.\\n           01 W-TIME PIC S9(8).\\n           01 W-DATE PIC S9(8).\\n           \\n       PROCEDURE DIVISION.\\n       MAIN-PROCEDURE.\\n            ACCEPT W-TIME FROM TIME.\\n            ACCEPT W-DATE FROM DATE.\\n            DISPLAY W-TIMU \" \\u016e.\\n            \\n            STOP RUN.\\n       END PROGRAM YOUR-PROGRAM-NAME.\\n\\n', 'path': 'C:\\\\Users\\\\PC\\\\OpenCobolIDE\\\\project\\\\DateAndTime.cbl', 'max_line_length': 79})\r\n14:50:59:132::ERROR::15556::pyqode.backend::Traceback (most recent call last):\r\n14:50:59:132::ERROR::15556::pyqode.backend::  File \"d:\\documents\\pyqode.core\\pyqode\\core\\backend\\server.py\", line 136, in _handle\r\n14:50:59:132::ERROR::15556::pyqode.backend::  File \"open_cobol_ide\\linter.py\", line 75, in lint\r\n14:50:59:133::ERROR::15556::pyqode.backend::  File \"c:\\python\\32-bit\\3.4\\lib\\encodings\\cp1252.py\", line 19, in encode\r\n14:50:59:133::ERROR::15556::pyqode.backend::UnicodeEncodeError: 'charmap' codec can't encode character '\\u016e' in position 609: character maps to <undefined>\r\n14:50:59:134::ERROR::15556::pyqode.backend::\r\n14:54:34:535::CRITICAL::15556::qcrash._hooks::unhandled exception:\r\n  File \"d:\\documents\\qcrash\\qcrash\\_dialogs\\report.py\", line 98, in _on_button_clicked\r\n  File \"d:\\documents\\qcrash\\qcrash\\backends\\github.py\", line 62, in send_report\r\n  File \"d:\\documents\\qcrash\\qcrash\\backends\\github.py\", line 162, in upload_log_file\r\n  File \"d:\\documents\\qcrash\\qcrash\\_extlibs\\github.py\", line 125, in __call__\r\n  File \"d:\\documents\\qcrash\\qcrash\\_extlibs\\github.py\", line 247, in _http\r\n  File \"c:\\python34\\lib\\urllib\\request.py\", line 463, in open\r\n  File \"c:\\python34\\lib\\urllib\\request.py\", line 481, in _open\r\n  File \"c:\\python34\\lib\\urllib\\request.py\", line 441, in _call_chain\r\n  File \"c:\\python34\\lib\\urllib\\request.py\", line 1225, in https_open\r\n  File \"c:\\python34\\lib\\urllib\\request.py\", line 1184, in do_open\r\n\r\nURLError: <urlopen error [Errno 11004] getaddrinfo failed>\r\n14:54:34:535::CRITICAL::15556::open_cobol_ide.app::unhandled exception:\r\n  File \"d:\\documents\\qcrash\\qcrash\\_dialogs\\report.py\", line 98, in _on_button_clicked\r\n  File \"d:\\documents\\qcrash\\qcrash\\backends\\github.py\", line 62, in send_report\r\n  File \"d:\\documents\\qcrash\\qcrash\\backends\\github.py\", line 162, in upload_log_file\r\n  File \"d:\\documents\\qcrash\\qcrash\\_extlibs\\github.py\", line 125, in __call__\r\n  File \"d:\\documents\\qcrash\\qcrash\\_extlibs\\github.py\", line 247, in _http\r\n  File \"c:\\python34\\lib\\urllib\\request.py\", line 463, in open\r\n  File \"c:\\python34\\lib\\urllib\\request.py\", line 481, in _open\r\n  File \"c:\\python34\\lib\\urllib\\request.py\", line 441, in _call_chain\r\n  File \"c:\\python34\\lib\\urllib\\request.py\", line 1225, in https_open\r\n  File \"c:\\python34\\lib\\urllib\\request.py\", line 1184, in do_open\r\n\r\nURLError: <urlopen error [Errno 11004] getaddrinfo failed>\r\n14:56:37:125::CRITICAL::15556::qcrash._hooks::unhandled exception:\r\n  File \"d:\\documents\\qcrash\\qcrash\\_dialogs\\report.py\", line 98, in _on_button_clicked\r\n  File \"d:\\documents\\qcrash\\qcrash\\backends\\github.py\", line 62, in send_report\r\n  File \"d:\\documents\\qcrash\\qcrash\\backends\\github.py\", line 162, in upload_log_file\r\n  File \"d:\\documents\\qcrash\\qcrash\\_extlibs\\github.py\", line 125, in __call__\r\n  File \"d:\\documents\\qcrash\\qcrash\\_extlibs\\github.py\", line 247, in _http\r\n  File \"c:\\python34\\lib\\urllib\\request.py\", line 463, in open\r\n  File \"c:\\python34\\lib\\urllib\\request.py\", line 481, in _open\r\n  File \"c:\\python34\\lib\\urllib\\request.py\", line 441, in _call_chain\r\n  File \"c:\\python34\\lib\\urllib\\request.py\", line 1225, in https_open\r\n  File \"c:\\python34\\lib\\urllib\\request.py\", line 1184, in do_open\r\n\r\nURLError: <urlopen error [Errno 11004] getaddrinfo failed>\r\n14:56:37:126::CRITICAL::15556::open_cobol_ide.app::unhandled exception:\r\n  File \"d:\\documents\\qcrash\\qcrash\\_dialogs\\report.py\", line 98, in _on_button_clicked\r\n  File \"d:\\documents\\qcrash\\qcrash\\backends\\github.py\", line 62, in send_report\r\n  File \"d:\\documents\\qcrash\\qcrash\\backends\\github.py\", line 162, in upload_log_file\r\n  File \"d:\\documents\\qcrash\\qcrash\\_extlibs\\github.py\", line 125, in __call__\r\n  File \"d:\\documents\\qcrash\\qcrash\\_extlibs\\github.py\", line 247, in _http\r\n  File \"c:\\python34\\lib\\urllib\\request.py\", line 463, in open\r\n  File \"c:\\python34\\lib\\urllib\\request.py\", line 481, in _open\r\n  File \"c:\\python34\\lib\\urllib\\request.py\", line 441, in _call_chain\r\n  File \"c:\\python34\\lib\\urllib\\request.py\", line 1225, in https_open\r\n  File \"c:\\python34\\lib\\urllib\\request.py\", line 1184, in do_open\r\n\r\nURLError: <urlopen error [Errno 11004] getaddrinfo failed>\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/OpenCobolIDE/OpenCobolIDE/issues/comments/255521577","html_url":"https://github.com/OpenCobolIDE/OpenCobolIDE/issues/363#issuecomment-255521577","issue_url":"https://api.github.com/repos/OpenCobolIDE/OpenCobolIDE/issues/363","id":255521577,"user":{"login":"ColinDuquesnoy","id":1681217,"avatar_url":"https://avatars.githubusercontent.com/u/1681217?v=3","gravatar_id":"","url":"https://api.github.com/users/ColinDuquesnoy","html_url":"https://github.com/ColinDuquesnoy","followers_url":"https://api.github.com/users/ColinDuquesnoy/followers","following_url":"https://api.github.com/users/ColinDuquesnoy/following{/other_user}","gists_url":"https://api.github.com/users/ColinDuquesnoy/gists{/gist_id}","starred_url":"https://api.github.com/users/ColinDuquesnoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColinDuquesnoy/subscriptions","organizations_url":"https://api.github.com/users/ColinDuquesnoy/orgs","repos_url":"https://api.github.com/users/ColinDuquesnoy/repos","events_url":"https://api.github.com/users/ColinDuquesnoy/events{/privacy}","received_events_url":"https://api.github.com/users/ColinDuquesnoy/received_events","type":"User","site_admin":false},"created_at":"2016-10-22T10:53:30Z","updated_at":"2016-10-22T10:53:30Z","body":"Sorry I haven't had the time to look into this issue yet but I think I have everything I need to reproduce the issue. I'll probably have some time early november."}}
{"actor":{"display_login":"ColinDuquesnoy"}}