Problems with "." in filenames with Unix 'lharc'

Michal Jaegermann mj at myrias.com
Thu Mar 15 06:07:51 AEST 1990


>From article <8795 at nfs4.rl.ac.uk>, by jjsc at inf.rl.ac.uk (John Cullen):
> When a file with any kind of extension (or in fact any
> character in the name *other* than the basic alphanumeric set) is added to
> the archive the "." (or whatever else) is (apparently) removed. Unfortunately
> I have been unable to then retrieve the file from the archive. Kind of
> annoying if you know what I mean :-)
> 
In a function which writes header (write_header ?) there is a call to
toupper() which is not guarded by "if (islower(c)) {...".  This may or
may not make your life hard depending on how your toupper behaves.

If you are using 'lharc' only for storing and retirieving files on Un*x,
and not for exchanging with other, non-case-sensitive operating systems,
you want probably undefine macro STRICT. Otherwise names of all unpacked
files will come in lowercase only.  As a side effect this will solve
also the problem above as an offending 'toupper()' call will be not
executed.


	Michal Jaegermann
	Myrias Research Corporation
	Edmonton, Alberta, CANADA
	mj at myrias.COM
	...{uunet,alberta}!myrias!mj



More information about the Comp.sources.bugs mailing list