From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,1cad9e238777fb5d,start X-Google-Attributes: gidfee84,public From: "Fran�ois BARDIN" Subject: Passing a buffer with an IFS without truncating ... Date: 1997/08/19 Message-ID: <01bcac80$92c051c0$0f1103c3@judge>#1/1 X-Deja-AN: 265212305 Organization: SCT / Worldnet - Internet Provider & Information Exchange - Paris, France Newsgroups: comp.unix.osf.osf1 Could somobody help me ?!!!! I have big troubles with IFS, and I can't get it. IFS are the Internal Fields Separators, that are , , and for the POSIX-tively correct Unix shells. But my probems do not come from command-lines shell, but from the buffers that I'm trying to manipulate through the different stream classes under DEC/C++. For example : -I've created my QueueInterfaceClass which allows me to make different processes communicate. But when I send a message ( which is in char * buffer ) which contains an IFS, all the characters behind the IFS one are blasted. i.e.: - If I send : "The cat is in the maze"; - I will receive :"The" - If I send "bloubloum cat" - I will receive :"bloumbloum" -I've created an Serial_Line_InterfaceClass to communicate with a P.C. with a RS232 chip. From the P.C. to my AlphaStation, the messages are not truncated, even if they contain an IFS character. But if there is one in a message from the station to the P.C., it is skipped with all the afterward characters. i.e: - Same examples that with the QueueInterfaceClass. And this, even if I send characters one by one on the serial_line !!! And yet, I use only asynchronous buffers in my stream classes !!! Well, this is in fact a problem on which I've spent hours and hours, trying many iostreams class configurations, without resolving just once the problem. And as the just-passed week-end has tired me a lot ( seems that me and my friends are the alive prooves that Paris is not a undeads-museum !!!), it's very hard to purchase the problem with a dbx debugger. So, if you have any suggestion, it will be welcomed. thanks a lot for finding time to answer me, sorry for my english ( but still try'ing to improve it.)