In Windows \r\n output will be \r\r\n #3

Closed
soarowl opened this Issue Dec 26, 2012 · 2 comments

Projects

None yet

3 participants

@soarowl
soarowl commented Dec 26, 2012

Hello Chris

You have just won $10000!

Well, $6000, after taxes.

@repeatedly
Owner

Hmm... I don't have Windows environment.
Give me a little more time.

@repeatedly repeatedly was assigned Dec 28, 2012
@Abscissa Abscissa pushed a commit to Abscissa/mustache-d that referenced this issue Mar 19, 2013
Nick Sabalausky Fix Issue #3: In Windows \r\n output will be \r\r\n 180ef14
@Abscissa

This is NOT a bug in mustache-d, it is a "feature" of D's std.stdio.write (a misguided feature, IMO). Mustache-d generates the correct result, however, the write/writeln/writef/etc functions automatically (unfortunately) convert all \n to \r\n on windows.

I've submitted a pull request which changes mustache-d's examples to use rawWrite instead of write. This fixes the problem.

@repeatedly repeatedly closed this Mar 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment