Article View: comp.sources.bugs
Article #2384Re: Problems with "." in filenames with Unix 'lharc'
From: Michal Jaegermann
Date: Wed, 14 Mar 1990 20:07
Date: Wed, 14 Mar 1990 20:07
24 lines
1517 bytes
1517 bytes
From article <8795@nfs4.rl.ac.uk>, by jjsc@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@myrias.COM
...{uunet,alberta}!myrias!mj
Technical Details
Message-ID:
<637445274.6082@myrias.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!uw-beaver!ubc-cs!alberta!myrias!mjReferences:
<8795@nfs4.rl.ac.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!uw-beaver!ubc-cs!alberta!myrias!mj From: mj@myrias.com (Michal Jaegermann) Newsgroups: comp.sources.bugs Subject: Re: Problems with "." in filenames with Unix 'lharc' Message-ID: <637445274.6082@myrias.com> Date: 14 Mar 90 20:07:51 GMT References: <8795@nfs4.rl.ac.uk> Organization: Myrias Research, Edmonton Lines: 24