Commit 3162a2ce authored by Brad King's avatar Brad King 💬
Browse files

BUG: Deal with windows newlines on binary cygwin mounts. This addresses bug#2191.

parent a9b4b3f0
......@@ -31,19 +31,7 @@ public:
<< "//" << endl
<< "const char* " << title << " ="
<< endl << "\"";
int preproc = 0;
while ( ( ch = fgetc(fp) ) != EOF )
{
if ( preproc )
{
this->Stream << (unsigned char)ch;
if ( ch == '\n' )
{
preproc = 0;
this->Stream << "\"";
}
}
else
{
if ( ch == '\n' )
{
......@@ -57,12 +45,11 @@ public:
{
this->Stream << "\\\"";
}
else
else if ( ch != '\r' )
{
this->Stream << (unsigned char)ch;
}
}
}
this->Stream << "\\n\";" << endl;
fclose(fp);
return VTK_OK;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment