{"action":"created","issue":{"url":"https://api.github.com/repos/byzhang/leveldb/issues/141","labels_url":"https://api.github.com/repos/byzhang/leveldb/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/byzhang/leveldb/issues/141/comments","events_url":"https://api.github.com/repos/byzhang/leveldb/issues/141/events","html_url":"https://github.com/byzhang/leveldb/issues/141","id":59730357,"number":141,"title":"build_detect_platform line ending error","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/byzhang/leveldb/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/byzhang/leveldb/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/byzhang/leveldb/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-04T00:18:25Z","updated_at":"2015-03-04T00:18:25Z","closed_at":"2015-03-04T00:18:25Z","body":"```\nWhat steps will reproduce the problem?\n1. git clone https://code.google.com/p/leveldb/\n2. cd leveldb\n3. make\n\nWhat is the expected output? What do you see instead?\nIt should compile. I get an error:\n$ make\n/bin/sh: 1: ./build_detect_platform: not found\nMakefile:18: build_config.mk: No such file or directory\nmake: *** No rule to make target `build_config.mk'.  Stop.\n\n./build_detect_platform actually exists, but when executed it prints:\n$ ./build_detect_platform \nbash: ./build_detect_platform: /bin/sh^M: bad interpreter: No such file or \ndirectory\n\nWhat version of the product are you using? On what operating system?\nleveldb 1.9, Ubuntu 12.04.\n\nPlease provide any additional information below.\n'dos2unix build_detect_platform' fixes the problem\n```\n\nOriginal issue reported on code.google.com by `gmarg...@gmail.com` on 22 Jan 2013 at 1:41"},"comment":{"url":"https://api.github.com/repos/byzhang/leveldb/issues/comments/77070949","html_url":"https://github.com/byzhang/leveldb/issues/141#issuecomment-77070949","issue_url":"https://api.github.com/repos/byzhang/leveldb/issues/141","id":77070949,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T00:18:25Z","updated_at":"2015-03-04T00:18:25Z","body":"```\nThis was my problem, there was a:\n---------\n[core]\n       autocrlf = true\n---------\nin my .gitconfig which was replacing line endings.\n```\n\nOriginal comment by `gmarg...@gmail.com` on 22 Jan 2013 at 2:14"}}