This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Window Maker crashing
- From: luke dot kendall at cisra dot canon dot com dot au
- To: cygwin-xfree at cygwin dot com
- Date: Tue, 10 Sep 2002 11:46:05 +1000 (EST)
- Subject: Re: Window Maker crashing
- Reply-to: cygwin-xfree at cygwin dot com
In-Reply-To: <20020906190247.678b2254.larsen587@firemail.de>
Message-Id: <20020909235725.62F9259BE@ivory.research.canon.com.au>
On 6 Sep, larsen587 wrote:
> there is an bug in wmaker. They are storing property files in binary
> mode and restoring them in text mode. Just check out the
> sources, grep -lr for fopen, change the mode string of the property
> related source file from "r" to "rb", and finally invoke *make".
Actually, that's basically what I did for the port (except I did it
for all open()s except popen()). I suspect the problem may be with
libproplist - I recall that it's now separate from WM, and so I would
not have applied the same mods to it; and it is used by WPrefs.
The consequence is that after you use WPrefs.app to modify any of your
look and feel preferences, the file ~/GNUstep/Defaults/WMState (and
maybe WMWindowAttributes), gets written out with CR/LF and when you
*next* start WM, it crashes.
My 0-effort workaround was to modify
~/GNUstep/Library/WindowMaker/exitscript to convert the files back to
Unix line endings via a utility called flip that I found via Google.
I'll have to dig up my notes on compiling WM, since it's stopping
with a complaint that _Xsetlocale is undefined, so I'll have to sort
that out. And this time I'll track down liproplist and make the rb/wb
changes there, too.
luke