TIP: Click on subject to list as thread! ANSI
echo: muffin
to: Michael Grant
from: Wes Garland
date: 2003-06-22 09:00:14
subject: Maximus/UNIX 3.03b: Released

MG> If Squish\UNIX can be compiled under djgpp, and 
 MG> there are only 's in it's squish.cfg file, will 
 MG> it still work under DOS/Windows, or would one have 
 MG> to always run unix2dos to convert the config file? 
 MG> (That could be quite an annoying situation...)
 
I will be making the UNIX versions of the various programs in the Maximus
distribution work with either DOS or UNIX-style newlines in the long run
(mecca is already like this).
 
I suspect it will work either way under djgpp, but I don't really know for sure.
 
The problem stems from the fact that files are [usually] opened in O_TEXT
when configuration files are read. Under UNIX, O_TEXT and O_BINARY have no
meaning. Under DOS, O_BINARY means "let the programmer see the file as
it exists on disk"; O_TEXT means "eat CR/LF into LF".
Translation is also done on write.
 
A good, portable solution for neither platform to care would be to open all
files under DOS as O_BINARY, and manually eat the trailing CRs. I do not
plan to make this change at this point, however, as I do not have a test
platform and don't want to make major changes which may have unintended
side effects (i.e. -- keep the code as close to max-3.01 under the other
platforms possible, until we can verify that certain changes don't make
things worse).
 
Wes

--- Maximus/2 3.01
* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)
SEEN-BY: 633/267 270
@PATH: 106/2000 633/267

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™.