{"action":"opened","issue":{"url":"https://api.github.com/repos/magnumripper/JohnTheRipper/issues/1179","labels_url":"https://api.github.com/repos/magnumripper/JohnTheRipper/issues/1179/labels{/name}","comments_url":"https://api.github.com/repos/magnumripper/JohnTheRipper/issues/1179/comments","events_url":"https://api.github.com/repos/magnumripper/JohnTheRipper/issues/1179/events","html_url":"https://github.com/magnumripper/JohnTheRipper/issues/1179","id":66394028,"number":1179,"title":"Is this a spell mistake? ","user":{"login":"loverszhaokai","id":2187242,"avatar_url":"https://avatars.githubusercontent.com/u/2187242?v=3","gravatar_id":"","url":"https://api.github.com/users/loverszhaokai","html_url":"https://github.com/loverszhaokai","followers_url":"https://api.github.com/users/loverszhaokai/followers","following_url":"https://api.github.com/users/loverszhaokai/following{/other_user}","gists_url":"https://api.github.com/users/loverszhaokai/gists{/gist_id}","starred_url":"https://api.github.com/users/loverszhaokai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loverszhaokai/subscriptions","organizations_url":"https://api.github.com/users/loverszhaokai/orgs","repos_url":"https://api.github.com/users/loverszhaokai/repos","events_url":"https://api.github.com/users/loverszhaokai/events{/privacy}","received_events_url":"https://api.github.com/users/loverszhaokai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-05T03:00:35Z","updated_at":"2015-04-05T03:00:35Z","closed_at":null,"body":"File: [src/regex.c](https://github.com/magnumripper/JohnTheRipper/blob/bleeding-jumbo/src/regex.c)\r\nLine: 44~60\r\n\r\nIs this a spell mistake at line 52 and 55?\r\n\r\n```C\r\nstatic void rexgen_setlocale() {\r\n\tconst char* defaultLocale = \"en_US.UTF8\";\r\n\tconst char* sysLocale = NULL;\r\n\r\n\tif ((sysLocale = getenv(\"LC_CTYPE\")) != NULL) {\r\n\t\tsetlocale(LC_CTYPE, sysLocale);\r\n\t}\r\n\tif ((sysLocale = getenv(\"LC_MESSAGES\")) != NULL) {\r\nline 52:\t\tsetlocale(LC_CTYPE, sysLocale);\r\n        // Should it be setlocale(LC_MESSAGES, sysLocale); ?\r\n\t}\r\n\tif ((sysLocale = getenv(\"LC_ALL\")) != NULL) {\r\nline 55:\t\tsetlocale(LC_CTYPE, sysLocale);\r\n        // Should it be setlocale(LC_ALL, sysLocale); ?\r\n\t}\r\n\tif (sysLocale == NULL) {\r\n\t\tsetlocale(LC_ALL, defaultLocale);\r\n\t}\r\n}\r\n```"}}