{"action":"created","issue":{"url":"https://api.github.com/repos/geany/geany/issues/1886","repository_url":"https://api.github.com/repos/geany/geany","labels_url":"https://api.github.com/repos/geany/geany/issues/1886/labels{/name}","comments_url":"https://api.github.com/repos/geany/geany/issues/1886/comments","events_url":"https://api.github.com/repos/geany/geany/issues/1886/events","html_url":"https://github.com/geany/geany/issues/1886","id":333416108,"node_id":"MDU6SXNzdWUzMzM0MTYxMDg=","number":1886,"title":"Error: Unable to read environment locale: exit now.","user":{"login":"tracing-home","id":35515961,"node_id":"MDQ6VXNlcjM1NTE1OTYx","avatar_url":"https://avatars3.githubusercontent.com/u/35515961?v=4","gravatar_id":"","url":"https://api.github.com/users/tracing-home","html_url":"https://github.com/tracing-home","followers_url":"https://api.github.com/users/tracing-home/followers","following_url":"https://api.github.com/users/tracing-home/following{/other_user}","gists_url":"https://api.github.com/users/tracing-home/gists{/gist_id}","starred_url":"https://api.github.com/users/tracing-home/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tracing-home/subscriptions","organizations_url":"https://api.github.com/users/tracing-home/orgs","repos_url":"https://api.github.com/users/tracing-home/repos","events_url":"https://api.github.com/users/tracing-home/events{/privacy}","received_events_url":"https://api.github.com/users/tracing-home/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-06-18T20:07:46Z","updated_at":"2018-06-19T20:57:25Z","closed_at":null,"author_association":"NONE","body":"Hi.... \r\nI am getting a consistent \r\n\r\n`Unable to read environment locale: exit now.`\r\n\r\nerror when trying to run context with this command (set in the create menu)\r\n\r\n`mtxrun --autogenerate --script context --autopdf --purge --synctex=-1 \"%d/%f\"`\r\n\r\nExecuting the same command in a terminal works fine. From TextMate also no problems.\r\n\r\nReplacing the actual command with a useless\r\n`cat \"%d/%f\"`\r\nproduces no errors. \r\n\r\nI am on MacOS 10.11.6, LANG=de_DE.UTF-8 shows in terminal, below is the debug info. \r\nI do notice the Gtk warning about locale not supported. If I set LANG=en_US.UTF-8 in .profile the error remains the same. What to do?\r\n\r\n\r\n`22:02:13: Gtk WARNING\t: Locale not supported by C library.\r\n\tUsing the fallback 'C' locale.\r\n22:02:13: Geany INFO\t\t: Geany 1.33, C\r\n22:02:13: Geany INFO\t\t: GTK 2.24.31, GLib 2.52.2\r\n22:02:13: Geany INFO\t\t: System data dir: /Applications/Geany.app/Contents/Resources/share/geany\r\n22:02:13: Geany INFO\t\t: User config dir: /Users/martin/.config/geany\r\n22:02:13: Geany INFO\t\t: System plugin path: /Applications/Geany.app/Contents/Resources/lib/geany\r\n22:02:13: Geany INFO\t\t: Added filetype Arduino (61).\r\n22:02:13: Geany INFO\t\t: Added filetype Clojure (62).\r\n22:02:13: Geany INFO\t\t: Added filetype CUDA (63).\r\n22:02:13: Geany INFO\t\t: Added filetype Cython (64).\r\n22:02:13: Geany INFO\t\t: Added filetype Genie (65).\r\n22:02:13: Geany INFO\t\t: Added filetype Graphviz (66).\r\n22:02:13: Geany INFO\t\t: Added filetype JSON (67).\r\n22:02:13: Geany INFO\t\t: Added filetype Scala (68).\r\n22:02:13: Geany INFO\t\t: Loaded libvte from libvte.9.dylib\r\n22:02:13: Geany INFO\t\t: /Users/martin/Documents/daf-Kurse/ABS/Mathe/Schätzen/textaufgabenweg.tex : LaTeX (UTF-8)\r\n`"},"comment":{"url":"https://api.github.com/repos/geany/geany/issues/comments/398543194","html_url":"https://github.com/geany/geany/issues/1886#issuecomment-398543194","issue_url":"https://api.github.com/repos/geany/geany/issues/1886","id":398543194,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODU0MzE5NA==","user":{"login":"tracing-home","id":35515961,"node_id":"MDQ6VXNlcjM1NTE1OTYx","avatar_url":"https://avatars3.githubusercontent.com/u/35515961?v=4","gravatar_id":"","url":"https://api.github.com/users/tracing-home","html_url":"https://github.com/tracing-home","followers_url":"https://api.github.com/users/tracing-home/followers","following_url":"https://api.github.com/users/tracing-home/following{/other_user}","gists_url":"https://api.github.com/users/tracing-home/gists{/gist_id}","starred_url":"https://api.github.com/users/tracing-home/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tracing-home/subscriptions","organizations_url":"https://api.github.com/users/tracing-home/orgs","repos_url":"https://api.github.com/users/tracing-home/repos","events_url":"https://api.github.com/users/tracing-home/events{/privacy}","received_events_url":"https://api.github.com/users/tracing-home/received_events","type":"User","site_admin":false},"created_at":"2018-06-19T20:57:25Z","updated_at":"2018-06-19T20:57:25Z","author_association":"NONE","body":"here it is. essentially the same result. sed seems to be the system one, though I do have homebrew installed.\r\n\r\n```\r\nwhich sed\r\n/usr/bin/sed\r\n```\r\n\r\n\r\n```\r\ndefaults read .GlobalPreferences AppleLanguages\r\n(\r\n    de,\r\n    en,\r\n    \"zh-Hant\"\r\n)\r\n\r\n```\r\n\r\nI wonder what I could have done to the system to get only \"de\". Actually it is a fairly fresh install. 10.11.6 El Capitain. Asides from a good bit of network blocking (outgoing) it is pretty default."}}
{"actor":{"display_login":"tracing-home"}}