Article View: news.software.nntp
Article #62813Re: NNTP and YENC
From: Dr.Ruud
Date: Sun, 05 Jan 2003 16:17
Date: Sun, 05 Jan 2003 16:17
45 lines
2165 bytes
2165 bytes
Bart Crane skribis:
> The restrictive view is that a text-stream
> can consist of any data, except maybe 00h.
> This restricts compatibility
> by excluding DOS/Windows computers from have stdio-based
> software systems.
Idea: find or create a dos2unix-filter and pipe through it.
See also:
CygWin
http://www.cs.mu.oz.au/research/mercury/mailing-lists/mercury-developers/mercury-developers.9909/0119.html
google: setmode fileno O_BINARY (1200 hits)
> while (EOF != (c= getchar()))
> putchar(c);
First do something like this:
#ifdef WIN32
if( setmode( fileno ( stdin ), O_BINARY ) == -1 ) {
perror ( "Cannot set stdin to binary mode" );
exit(-1);
}
if( setmode( fileno ( stdout ), O_BINARY ) == -1 ) {
perror ( "Cannot set stdout to binary mode" );
exit(-1);
}
#endif
--
Affijn, Ruud
Technical Details
Message-ID:
<av9peu.1eo.1@news.isolution.nl>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!newsgate.cistron.nl!transit.news.xs4all.nl!newsfeed.xs4all.nl!xs4all!not-for-mailReferences:
<BXLR9.432835$pN3.48082@sccrnsc03> <ylfzs8tlg7.fsf@windlord.stanford.edu> <e7VR9.570818$%m4.168983@rwcrnsc52.ops.asp.att.net>Show Full Headers
Complete Article Headers
Message-ID: <av9peu.1eo.1@news.isolution.nl>
Subject: Re: NNTP and YENC
Date: Sun, 5 Jan 2003 17:17:38 +0100
From: "Dr.Ruud" <'t.leven.is.fijn@life.i$.great>
References: <BXLR9.432835$pN3.48082@sccrnsc03> <ylfzs8tlg7.fsf@windlord.stanford.edu> <e7VR9.570818$%m4.168983@rwcrnsc52.ops.asp.att.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!newsgate.cistron.nl!transit.news.xs4all.nl!newsfeed.xs4all.nl!xs4all!not-for-mail
Reply-To: "Dr.Ruud" <rvtol@isolution.nl>
Newsgroups: news.software.nntp
Organization: k-oz rewlz
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1123
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1123
X-Face: #{C<X">RxZJ*2)H_&d$Um/=B%{yse{[bKgJ2AxD^-`7rAZej\.vG{F'C$p(>&#cS
Lines: 44
NNTP-Posting-Date: 05 Jan 2003 17:19:34 CET
NNTP-Posting-Host: 24.132.0.158
X-Trace: 1041783574 news.xs4all.nl 49107 rvtol/24.132.0.158:63653
X-Complaints-To: abuse@xs4all.nl