{"action":"created","issue":{"url":"https://api.github.com/repos/tbeu/Modelica/issues/1580","repository_url":"https://api.github.com/repos/tbeu/Modelica","labels_url":"https://api.github.com/repos/tbeu/Modelica/issues/1580/labels{/name}","comments_url":"https://api.github.com/repos/tbeu/Modelica/issues/1580/comments","events_url":"https://api.github.com/repos/tbeu/Modelica/issues/1580/events","html_url":"https://github.com/tbeu/Modelica/issues/1580","id":197607781,"number":1580,"title":"File reading works differently depending on OS","user":{"login":"modelica-trac-importer","id":22202507,"avatar_url":"https://avatars.githubusercontent.com/u/22202507?v=3","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"labels":[{"id":506762997,"url":"https://api.github.com/repos/tbeu/Modelica/labels/bug","name":"bug","color":"ee0701","default":true},{"id":506768950,"url":"https://api.github.com/repos/tbeu/Modelica/labels/L:C-Sources","name":"L:C-Sources","color":"0000aa","default":false}],"state":"open","locked":false,"assignee":{"login":"beutlich","id":14896695,"avatar_url":"https://avatars.githubusercontent.com/u/14896695?v=3","gravatar_id":"","url":"https://api.github.com/users/beutlich","html_url":"https://github.com/beutlich","followers_url":"https://api.github.com/users/beutlich/followers","following_url":"https://api.github.com/users/beutlich/following{/other_user}","gists_url":"https://api.github.com/users/beutlich/gists{/gist_id}","starred_url":"https://api.github.com/users/beutlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beutlich/subscriptions","organizations_url":"https://api.github.com/users/beutlich/orgs","repos_url":"https://api.github.com/users/beutlich/repos","events_url":"https://api.github.com/users/beutlich/events{/privacy}","received_events_url":"https://api.github.com/users/beutlich/received_events","type":"User","site_admin":false},"assignees":[{"login":"beutlich","id":14896695,"avatar_url":"https://avatars.githubusercontent.com/u/14896695?v=3","gravatar_id":"","url":"https://api.github.com/users/beutlich","html_url":"https://github.com/beutlich","followers_url":"https://api.github.com/users/beutlich/followers","following_url":"https://api.github.com/users/beutlich/following{/other_user}","gists_url":"https://api.github.com/users/beutlich/gists{/gist_id}","starred_url":"https://api.github.com/users/beutlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beutlich/subscriptions","organizations_url":"https://api.github.com/users/beutlich/orgs","repos_url":"https://api.github.com/users/beutlich/repos","events_url":"https://api.github.com/users/beutlich/events{/privacy}","received_events_url":"https://api.github.com/users/beutlich/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/tbeu/Modelica/milestones/52","html_url":"https://github.com/tbeu/Modelica/milestone/52","labels_url":"https://api.github.com/repos/tbeu/Modelica/milestones/52/labels","id":2214855,"number":52,"title":"MSL3.2.1+build.3","description":"Plan as of 84th Modelica Design Meeting:\n 1. Freeze date for maintenance build: Dec 22, 2014\n 2. Leo will run regression testing an fill a ticket for all models with non-obvious differences by Jan 2, 2015 (check \n    wiki:HowTo/MAP-LIB/ModelicaStandardLibrary/RegressionTesting for instructions how to replicate regression tests)\n 3. All library officers should react within one week, until Jan 9, 2015 (either explain the difference or fix the bug)\n 4. A web meeting is scheduled shortly after Jan 9, 2015 for a quick review and then build `v3.2.1+build.3-beta.2`\n\n","creator":{"login":"modelica-trac-importer","id":22202507,"avatar_url":"https://avatars.githubusercontent.com/u/22202507?v=3","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":73,"state":"closed","created_at":"2016-12-25T13:01:13Z","updated_at":"2016-12-26T17:41:48Z","due_on":"2014-03-15T07:00:00Z","closed_at":"2016-12-25T13:01:13Z"},"comments":8,"created_at":"2016-12-26T17:41:48Z","updated_at":"2016-12-26T17:43:38Z","closed_at":null,"body":"**Reported by sjoelund&#46;se on 6 Oct 2014 14:04 UTC**\nWe have in the code for ModelicaInternal.c:\n```c\nfp = fopen(fileName, \"r\");\n```\nWhich works differently on Windows and Linux (copyFile works the same on both OS since \"rb\" is used there). This is a problem because the `readLine` routines will produce a different result on Linux:\n```mo\n{\"line1\\r\",\"line2\\r\",...} // Linux\n{\"line1\",\"line2\",...} // Windows\n```\n\nThere are two ways to solve this: make file reading strip \"\\r\" at the end of a line silently. Or keep it on all OS'es. I would suggest stripping it since we have found some third-party code that depends on \\r being translated.\n\n----\n\nMigrated-From: https://trac.modelica.org/Modelica/ticket/1580"},"comment":{"url":"https://api.github.com/repos/tbeu/Modelica/issues/comments/269229884","html_url":"https://github.com/tbeu/Modelica/issues/1580#issuecomment-269229884","issue_url":"https://api.github.com/repos/tbeu/Modelica/issues/1580","id":269229884,"user":{"login":"modelica-trac-importer","id":22202507,"avatar_url":"https://avatars.githubusercontent.com/u/22202507?v=3","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"created_at":"2016-12-26T17:43:38Z","updated_at":"2016-12-26T17:43:38Z","body":"**Comment by beutlich on 7 Oct 2014 13:56 UTC**\nResolved by bbcfe6855320eceb435ee2a7255e5c9457a8f211/ d178caabd8d6770442600436f324ba14cc7172d3 (maint. branch) and 9b7fef32de5eba6185b59355c6ac46c65b7f6644 (trunk)."}}
{"actor":{"display_login":"modelica-trac-importer"}}