{"action":"created","issue":{"url":"https://api.github.com/repos/kanaka/mal/issues/36","labels_url":"https://api.github.com/repos/kanaka/mal/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/kanaka/mal/issues/36/comments","events_url":"https://api.github.com/repos/kanaka/mal/issues/36/events","html_url":"https://github.com/kanaka/mal/issues/36","id":60488835,"number":36,"title":"Similar test failures in multiple languages","user":{"login":"vi","id":173219,"avatar_url":"https://avatars.githubusercontent.com/u/173219?v=3","gravatar_id":"","url":"https://api.github.com/users/vi","html_url":"https://github.com/vi","followers_url":"https://api.github.com/users/vi/followers","following_url":"https://api.github.com/users/vi/following{/other_user}","gists_url":"https://api.github.com/users/vi/gists{/gist_id}","starred_url":"https://api.github.com/users/vi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vi/subscriptions","organizations_url":"https://api.github.com/users/vi/orgs","repos_url":"https://api.github.com/users/vi/repos","events_url":"https://api.github.com/users/vi/events{/privacy}","received_events_url":"https://api.github.com/users/vi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-03-10T12:00:32Z","updated_at":"2015-03-18T18:15:39Z","closed_at":null,"body":"```\r\n$ ./runtest.py  q.mal -- rust/target/release/step1_read_print\r\nTEST: (+ 1 2) -> ['','(+ 1 2)'] -> FAIL (line 2):\r\n    Expected : '(+ 1 2)\\r\\n(+ 1 2)'\r\n    Got      : '(+ 1 2)\\x08\\x08\\x08\\x08\\x08\\x08\\x08\\x1b[C\\x1b[C\\x1b[C\\x1b[C\\x1b[C\\x1b[C\\x1b[C\\r\\n(+ 1 2)'\r\nFAILURES: 1\r\n$ ./runtest.py  q.mal -- python python/step1_read_print.py \r\nTEST: (+ 1 2) -> ['','(+ 1 2)'] -> FAIL (line 2):\r\n    Expected : '(+ 1 2)\\r\\n(+ 1 2)'\r\n    Got      : '(+ 1 2)\\x08\\x08\\x08\\x08\\x08\\x08\\x08\\x1b[C\\x1b[C\\x1b[C\\x1b[C\\x1b[C\\x1b[C\\x1b[C\\r\\n(+ 1 2)'\r\nFAILURES: 1\r\n$ ./runtest.py  q.mal -- perl perl/step1_read_print.pl \r\nTEST: (+ 1 2) -> ['','(+ 1 2)'] -> FAIL (line 2):\r\n    Expected : '(+ 1 2)\\r\\n(+ 1 2)'\r\n    Got      : '(+ 1 2)\\x08\\x08\\x08\\x08\\x08\\x08\\x08\\x1b[C\\x1b[C\\x1b[C\\x1b[C\\x1b[C\\x1b[C\\x1b[C\\r\\n(+ 1 2)'\r\nFAILURES: 1\r\n```\r\n\r\nThe programs does actually output those bytes:\r\n\r\n```\r\n$ rust/target/release/step1_read_print < q.mal  | hd\r\n00000000  75 73 65 72 3e 20 28 2b  20 31 20 32 29 08 08 08  |user> (+ 1 2)...|\r\n00000010  08 08 08 08 1b 5b 43 1b  5b 43 1b 5b 43 1b 5b 43  |.....[C.[C.[C.[C|\r\n00000020  1b 5b 43 1b 5b 43 1b 5b  43 0a 28 2b 20 31 20 32  |.[C.[C.[C.(+ 1 2|\r\n00000030  29 0a 75 73 65 72 3e 20  3b 3d 3e 28 2b 20 31 20  |).user> ;=>(+ 1 |\r\n00000040  32 29 08 08 08 08 08 08  08 1b 5b 43 1b 5b 43 1b  |2)........[C.[C.|\r\n00000050  5b 43 1b 5b 43 1b 5b 43  1b 5b 43 1b 5b 43 0a 75  |[C.[C.[C.[C.[C.u|\r\n00000060  73 65 72 3e 20                                    |ser> |\r\n00000065\r\n```\r\n\r\nWhy does this happen? Is it some interference from readline?"},"comment":{"url":"https://api.github.com/repos/kanaka/mal/issues/comments/83106841","html_url":"https://github.com/kanaka/mal/issues/36#issuecomment-83106841","issue_url":"https://api.github.com/repos/kanaka/mal/issues/36","id":83106841,"user":{"login":"kanaka","id":70127,"avatar_url":"https://avatars.githubusercontent.com/u/70127?v=3","gravatar_id":"","url":"https://api.github.com/users/kanaka","html_url":"https://github.com/kanaka","followers_url":"https://api.github.com/users/kanaka/followers","following_url":"https://api.github.com/users/kanaka/following{/other_user}","gists_url":"https://api.github.com/users/kanaka/gists{/gist_id}","starred_url":"https://api.github.com/users/kanaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanaka/subscriptions","organizations_url":"https://api.github.com/users/kanaka/orgs","repos_url":"https://api.github.com/users/kanaka/repos","events_url":"https://api.github.com/users/kanaka/events{/privacy}","received_events_url":"https://api.github.com/users/kanaka/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T18:15:39Z","updated_at":"2015-03-18T18:15:39Z","body":"@vi can you try again. I'm pushed a change to force the size of the pty for the subprocess to something large (200x100). It's possible readline on your system was assuming something smaller than the normal default (80x25) and so that may have been causing control characters to be added to the stream. I doubt it will fix it, but fingers crossed :-)"}}