From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Willi Egger <w.egger@boede.nl>
Subject: buffers writing CR only instead of proper newlines (LF)
Date: Sat, 2 May 2015 15:55:53 +0200 [thread overview]
Message-ID: <CALBOmsbZ3cwwn7z7m_iwzB6o8angAG8rJCS2UVdvQYUM407e6g@mail.gmail.com> (raw)
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
___________________________________________________________________________________
reply other threads:[~2015-05-02 13:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CALBOmsbZ3cwwn7z7m_iwzB6o8angAG8rJCS2UVdvQYUM407e6g@mail.gmail.com \
--to=mojca.miklavec.lists@gmail.com \
--cc=ntg-context@ntg.nl \
--cc=w.egger@boede.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).