delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/11/13/22:02:24

From: "Rafal 'Raf256' Maj" <rafal AT raf256 DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: strange character in the source code
Date: 14 Nov 2002 02:51:47 GMT
Organization: news.onet.pl
Lines: 23
Sender: raf256 AT poczta DOT onet DOT pl@rafal.joint.eu.org
Message-ID: <Xns92C6269F88B8Araf256com@213.180.128.20>
References: <20021114015554 DOT 61684 DOT qmail AT web20701 DOT mail DOT yahoo DOT com>
NNTP-Posting-Host: rafal.joint.eu.org
Mime-Version: 1.0
X-Trace: news.onet.pl 1037242307 20347 62.233.182.161 (14 Nov 2002 02:51:47 GMT)
X-Complaints-To: abuse AT onet DOT pl
NNTP-Posting-Date: 14 Nov 2002 02:51:47 GMT
User-Agent: Xnews/5.04.25
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Tony Zhou <johnerzhou AT yahoo DOT com> wrote in 
news:20021114015554 DOT 61684 DOT qmail AT web20701 DOT mail DOT yahoo DOT com

> I copy source code from mail, the email software add a
> strange code in the C source code(add 0xa0 before the
> SPACE character).

Probably it's problem with \r\n Vs \n new-lines... send this source to me 
(ZIPped) and I will try to fix it, btw. writing program taht will copy file 
i.e. byte-by-byte and skip 0xa0 characters is tryvial...

fstream in,out // ios::in|ios::binary and ios:out|binary
while (in) {
  unsigned char ch;
  in>>ch;
  if (ch!=0xa0) out<<ch;
}
// close etc...


-- 
Rafał 'Raf256' Maj
http://www.raf256.com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019