delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/22/19:42:57

Message-Id: <199710222323.TAA05425@delorie.com>
Date: Wed, 22 Oct 1997 11:06:00 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: djgpp-announce AT delorie DOT com
cc: "K. Berry" <kb AT cs DOT umb DOT edu>,
"Fabrice.Popineau" <popineau AT esemetz DOT ese-metz DOT fr>
Subject: Texk programs fixed and uploaded
MIME-Version: 1.0

I have discovered a bug in the DJGPP port of Texk package which only
shows on Windows 95, and only in the C emulation of the MakeTeX
scripts.  The bug caused some of the MakeTeX programs (MakeTeXls-R is
one of them) to access incorrect drive when testing whether the
filesystem is case-preserving.  In particular, if you were running
from drive C:, MakeTeXls-R would access drive B:, which on a
single-floppy systems would switch the DOS box to full-screen mode and
display the ugly DOS prompt to insert a disk into drive B: and press
any key...

The source patch is appended below.  I have uploaded the corrected
sources (kpse30s.zip) and binaries (all the *b.zip files) to the DJGPP
archives on SimTel.NET.  If you use TeX on Windows 95, you should
consider downloading the patched binaries.

diff -c kpathsea/contrib/stackenv.h~0 kpathsea/contrib/stackenv.h
*** kpathsea/contrib/stackenv.h~0	Thu Jun 19 17:50:00 1997
--- kpathsea/contrib/stackenv.h	Tue Oct 21 14:26:20 1997
***************
*** 6,12 ****
  # define mkdir(p,m)  _mkdir(p)
  typedef unsigned long mode_t;
  #else
! # define _getdrive		getdisk
  # define FS_CASE_IS_PRESERVED	_FILESYS_CASE_PRESERVED
  typedef unsigned int DWORD;
  #endif
--- 6,12 ----
  # define mkdir(p,m)  _mkdir(p)
  typedef unsigned long mode_t;
  #else
! # define _getdrive()		(getdisk() + 1)
  # define FS_CASE_IS_PRESERVED	_FILESYS_CASE_PRESERVED
  typedef unsigned int DWORD;
  #endif

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019