This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Xwin stackdump while logging into RH8 with KDE as window manager
- From: Harold L Hunt II <huntharo at msu dot edu>
- To: cygwin-xfree at cygwin dot com
- Date: Sun, 05 Oct 2003 14:01:08 -0400
- Subject: Re: Xwin stackdump while logging into RH8 with KDE as window manager
- References: <3F561BEB.3040606@Etish.org> <3F561ED6.6080500@msu.edu> <m3bru1osoo.fsf@flognat.dyndns.org> <3F570BC4.9060503@Etish.org> <3F5710C2.4000109@Etish.org> <m3smnconpy.fsf@flognat.dyndns.org> <3F5725AB.2030708@etish.org> <3F573109.9080104@msu.edu> <3F573474.3080208@Etish.org> <3F57358E.4080003@msu.edu> <3F585C40.90008@Etish.org> <3F5899A5.2090704@msu.edu> <3F58BB12.6080604@Etish.org> <3F58BEE8.9070706@msu.edu> <3F58CE17.40001@Etish.org> <3F58FB55.9060101@msu.edu> <3F59BCC3.9000100@Etish.org> <3F5A93E6.2020804@msu.edu> <Pine.LNX.4.55.0309072014570.9849@lupus.ago.vpn> <Pine.LNX.4.55.0309072101130.9849@lupus.ago.vpn>
- Reply-to: cygwin-xfree at cygwin dot com
Alexander,
I have submitted this to XFree86 to get it in before the XFree86 4.4.0
feature deadline in about two weeks:
http://bugs.xfree86.org/show_bug.cgi?id=768
Harold
Alexander Gottwald wrote:
Missing attachment :)
NP: Lacrimosa - Schakal
------------------------------------------------------------------------
Index: xkbcomp.c
===================================================================
RCS file: /cvs/xc/programs/xkbcomp/xkbcomp.c,v
retrieving revision 3.19
diff -u -u -r3.19 xkbcomp.c
--- xkbcomp.c 27 May 2003 22:27:07 -0000 3.19
+++ xkbcomp.c 7 Sep 2003 18:56:18 -0000
@@ -871,16 +871,30 @@
* -- Branden Robinson
*/
int outputFileFd;
+ int binMode = 0;
+ const char *openMode = "w";
unlink(outputFile);
+#ifdef O_BINARY
+ switch (outputFormat) {
+ case WANT_XKM_FILE:
+ binMode = O_BINARY;
+ openMode = "wb";
+ break;
+ default:
+ binMode = 0;
+ break;
+ }
+#endif
outputFileFd= open(outputFile, O_WRONLY|O_CREAT|O_EXCL,
- S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH);
+ S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH|binMode);
if (outputFileFd<0) {
ERROR1("Cannot open \"%s\" to write keyboard description\n",
outputFile);
ACTION("Exiting\n");
exit(1);
}
- out= fdopen(outputFileFd, "w");
+
+ out= fdopen(outputFileFd, openMode);
/* end BR */
if (out==NULL) {
ERROR1("Cannot open \"%s\" to write keyboard description\n",