* buffers writing CR only instead of proper newlines (LF)
@ 2015-05-02 13:55 Mojca Miklavec
0 siblings, 0 replies; only message in thread
From: Mojca Miklavec @ 2015-05-02 13:55 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Willi Egger
Hi,
The gnuplot module recently stopped working because the buffers now
seem to write out the CR (0x0d) instead of the LF character for
newlines.
Here's a minimal example as shamelessly stolen from the module:
\long\def\startXheader
{\def\stopXheader{\ifx\savebuffer\undefined \else \savebuffer[x-header]\fi}%
\dostartbuffer[x-header][startXheader][stopXheader]}
\def\resetXheader
{\immediate\openout\scratchwrite=\jobname-x-header.tmp
\immediate\closeout\scratchwrite}
\resetXheader
\starttext
\startXheader
hello
bachotex
\stopXheader
\stoptext
The problem is that I end up with a file with what vim shows as
"hello^Mbachotex" (^M = character 0x0d / CR).
This works properly in TL 2014.
Any hints greatly appreciated.
Thank you very much,
Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-05-02 13:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-02 13:55 buffers writing CR only instead of proper newlines (LF) Mojca Miklavec
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).