TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Ruud Senden
from: Thomas Seeling
date: 1996-04-09 14:10:58
subject: Pipes - emx-bug?

Hallo, Ruud!

*** Am Montag 01. April 1996 um 18:31 schrieb Ruud Senden an All:

 RS> The problem is that this reading goes wrong whenever such a block contains
 RS> one or more newline-characters. If this happens, some other character in
 RS> the same block is duplicated. However, when I change the mode of the pipe
 RS> to binary using setmode(), everything works correctly. But setmode() is
 RS> listed as PC-compatibility, so this function probably isn't available
 RS> under UNIX.
Change the makefile to link with binmode.o/obj for the OS/2 version.

 RS> text-mode, so I think this is a bug in emx. Can somebody confirm this? And
This is no bug, it is listed in the "hints for porting unix".

You can circumvent this with a conditional in the source, like

#ifdef __EMX__
  set??mode(O_BINARY);
#endif

 RS> emx? And what is the latest version of emx?
0.9b Fix #3. Subscribe to the mailing list emx{at}iaehv.nl, it is worth it.
All the high society :-) is reading and writing there, including EM, Holger
Veit, Dale DePriest, ...


Tschau...Thomas

--- E3-32/1.11-32/2.50+
* Origin: Die TeX-Box +49-6034-1455 V.34 -930022 ISDN 24h (2:244/1130.42)
SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809
@PATH: 244/1130 24/999 2/777 396/1 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.