[xep-support] It would be nice if.

John Aschenbrenner jaschenbrenner at ignitionmts.com
Fri Mar 29 14:53:48 PST 2002


Thanks for your prompt reply, Nikolai. The below also works to convert UNIX
files.

// FixUnix.cpp : This will change Unix format files fo DOS format files.
//


#include <stdio.h>

int main(int argc, char* argv[])
{
	int c = 0;

	while((c = getchar()) != EOF)
	{
		if (c == 0x0a)
		{
			putchar('\n');	// CRLF
		}
		else
		{
			putchar(c);
		}
	}

	return 0;
}

-----Original Message-----
From: Nikolai Grigoriev [mailto:grig at renderx.com]
Sent: Friday, March 29, 2002 10:55 AM
To: John Aschenbrenner; xep-support at renderx.com
Subject: Re: [xep-support] It would be nice if.


John,

> It would be nice if you could render your readme.txt file in DOS/Windows
> format with the proper sequence for newline characters.  FYI ...
> DOS/Windows OS newline characters consist of the following ASCII character
> sequence, in hexadecimal 0D, 0A.  Not 0A as you have rendered it, which
> may work fine on UNIX machines but gee... didn't I download the Windows
> eval?

Thank you for signalling the problem: plain text files included in
xep_272_eval_msjvm.zip indeed have Unix-style linefeeds. We will correct it
in
forthcoming versions of the evaluation package for Microsoft Java VM.
Unfortunately, we cannot do it for xep_272_eval_sunjvm.zip because this
version
must be usable not only on Win32 but also on Unix/Linux.

Anyhow, 0A linefeeds are treated correctly by virtually all text processors
except for Notepad. As a workaround, I suggest opening readme.txt in MS Word
or
Wordpad. Sending it to the console ( C:\> type readme.txt | more ) will also
produce correct results.

By the way: there is no such thing as "Windows eval" - the other evaluation
package also works well in Windows environment. The difference is in the
setup
code only: the version made for Sun Java is much easier to install. If you
don't
have serious reasons to use MSJVM, I recommend using Sun JRE version
(xep_272_eval_sunjvm.zip).

Best regards,
Nikolai Grigoriev
RenderX

-------------------
By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



More information about the Xep-support mailing list