{"action":"created","issue":{"url":"https://api.github.com/repos/tesseract-ocr/tesseract/issues/1670","repository_url":"https://api.github.com/repos/tesseract-ocr/tesseract","labels_url":"https://api.github.com/repos/tesseract-ocr/tesseract/issues/1670/labels{/name}","comments_url":"https://api.github.com/repos/tesseract-ocr/tesseract/issues/1670/comments","events_url":"https://api.github.com/repos/tesseract-ocr/tesseract/issues/1670/events","html_url":"https://github.com/tesseract-ocr/tesseract/issues/1670","id":332243111,"node_id":"MDU6SXNzdWUzMzIyNDMxMTE=","number":1670,"title":"recent change setlocale in baseapi.c causes Python loaded tesseract library to fail","user":{"login":"jwnsu","id":210987,"node_id":"MDQ6VXNlcjIxMDk4Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/210987?v=4","gravatar_id":"","url":"https://api.github.com/users/jwnsu","html_url":"https://github.com/jwnsu","followers_url":"https://api.github.com/users/jwnsu/followers","following_url":"https://api.github.com/users/jwnsu/following{/other_user}","gists_url":"https://api.github.com/users/jwnsu/gists{/gist_id}","starred_url":"https://api.github.com/users/jwnsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwnsu/subscriptions","organizations_url":"https://api.github.com/users/jwnsu/orgs","repos_url":"https://api.github.com/users/jwnsu/repos","events_url":"https://api.github.com/users/jwnsu/events{/privacy}","received_events_url":"https://api.github.com/users/jwnsu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-14T03:54:32Z","updated_at":"2018-06-14T04:04:55Z","closed_at":null,"author_association":"NONE","body":"Ubuntu 16.04, default locale is \"en_US.UTF-8\". Invoke tesseract library via cffi. Now fail with following\r\nerror:\r\n   `!strcmp(locale, \"C\"):Error:Assert failed:in file baseapi.cpp, line 192`\r\n\r\nIt worked fine before  baseapi.cpp locale assertion was introduce in commit 3292484f67af8bdda23aa5e510918d0115785291 on 06/07/18.\r\n\r\nAny suggestion to get around this issue? Thx.\r\n\r\nC or C++ program seems to set default locale \"C\", however, it's not the case for python, where default is \"en_US.UTF-8\"."},"comment":{"url":"https://api.github.com/repos/tesseract-ocr/tesseract/issues/comments/397163993","html_url":"https://github.com/tesseract-ocr/tesseract/issues/1670#issuecomment-397163993","issue_url":"https://api.github.com/repos/tesseract-ocr/tesseract/issues/1670","id":397163993,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzE2Mzk5Mw==","user":{"login":"Shreeshrii","id":5095331,"node_id":"MDQ6VXNlcjUwOTUzMzE=","avatar_url":"https://avatars1.githubusercontent.com/u/5095331?v=4","gravatar_id":"","url":"https://api.github.com/users/Shreeshrii","html_url":"https://github.com/Shreeshrii","followers_url":"https://api.github.com/users/Shreeshrii/followers","following_url":"https://api.github.com/users/Shreeshrii/following{/other_user}","gists_url":"https://api.github.com/users/Shreeshrii/gists{/gist_id}","starred_url":"https://api.github.com/users/Shreeshrii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shreeshrii/subscriptions","organizations_url":"https://api.github.com/users/Shreeshrii/orgs","repos_url":"https://api.github.com/users/Shreeshrii/repos","events_url":"https://api.github.com/users/Shreeshrii/events{/privacy}","received_events_url":"https://api.github.com/users/Shreeshrii/received_events","type":"User","site_admin":false},"created_at":"2018-06-14T04:04:55Z","updated_at":"2018-06-14T04:04:55Z","author_association":"CONTRIBUTOR","body":"set the locale \"C\".\n\n\n\nShreeDevi\n____________________________________________________________\nभजन - कीर्तन - आरती @ http://bhajans.ramparivar.com\n\n\nOn Thu, Jun 14, 2018 at 9:24 AM jwnsu <notifications@github.com> wrote:\n\n> Ubuntu 16.04, default locale is \"en_US.UTF-8\". Invoke tesseract library\n> via cffi. Now fail with following\n> error:\n> !strcmp(locale, \"C\"):Error:Assert failed:in file baseapi.cpp, line 192\n>\n> baseapi.cpp locale assertion was introduce in commit 3292484\n> <https://github.com/tesseract-ocr/tesseract/commit/3292484f67af8bdda23aa5e510918d0115785291>\n> on 06/07/18.\n>\n> Any suggestion to get around this issue? Thx.\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/tesseract-ocr/tesseract/issues/1670>, or mute the\n> thread\n> <https://github.com/notifications/unsubscribe-auth/AE2_o6FBzYQJa32lzFfd8uPVQQI2fxkzks5t8d6HgaJpZM4UnRbY>\n> .\n>\n"}}
{"actor":{"display_login":"Shreeshrii"}}