Skip to content

Add support for Windows line endings in cnd #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 14 commits into from
Closed

Add support for Windows line endings in cnd #51

wants to merge 14 commits into from

Conversation

relo-san
Copy link

The finalized version of @dinamic fix for issue #48. PHPUnit tests passed.

public function __construct($buffer)
{
$this->eofMarker = chr(1);
$this->buffer = $buffer . $this->eofMarker;
$this->buffer = str_replace("\r\n", "\n", $buffer) . $this->eofMarker;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if i got it right, this also covers mac osx. i guess nobody still uses mac os 9 or older which had \r

@dbu dbu closed this in e8c2b45 Apr 21, 2013
@dbu
Copy link
Member

dbu commented Apr 21, 2013

thanks a lot @dinamic @relo-san for fixing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants