Handling special characters (\/:*?"<>|) gracefully
Dave Korn
dave.korn@artimi.com
Wed May 24 16:34:00 GMT 2006
On 24 May 2006 15:15, Williams, Gerald S (Jerry) wrote:
> Dave Korn wrote:
>>> I actually use a version of such a library to create some of
>>> the otherwise-uncreatable files in a /dev directory (which is
>>> not on a managed mount). That way, I can do:
>>
>> Is this code public?
>
> Some of it is, sort of.
>
> I finally got permission from my company to release it into
> the public domain. I even went so far as to create a project
> on sourceforge.
> At that time, I had completed the following routines:
>
> CaseWiseCreateDirectory
> CaseWiseCreateDirectoryA
> CaseWiseCreateDirectoryW
> CaseWiseCreateDirectoryEx
> CaseWiseCreateDirectoryExA
> CaseWiseCreateDirectoryExW
> CaseWiseCreateFile
> CaseWiseCreateFileA
> CaseWiseCreateFileW
> CaseWiseSetCurrentDirectory
> CaseWiseSetCurrentDirectoryA
> CaseWiseSetCurrentDirectoryW
>
> And was working on:
>
> CaseWiseMoveFile
<lightbulb> Hey, that "CaseWise" prefix looks familiar! Yes, I came across
your old posts about it when I was looking into the use of
POSIX_FILE_SEMANTICS myself last summer. I came to fairly much the same list
of needed functions myself when I looked into the matter, and then ran out of
round tuits. I was thinking of implementing posix mount points as an
alternative to managed ones.
http://www.cygwin.com/ml/cygwin/2003-02/msg02179.html
Ah, yes, that's the thread I remember finding.
http://sourceforge.net/projects/casewise/
Heh. No files released, zero commits to cvs, one welcome post by "nobody"
in each of the forums.... it's like the Marie Celeste in there!
> Now, the whole point to the project was to make something
> available that Cygwin could use, since my company would not
> sign the release that allowing me to contribute directly.
> (This is another reason why the code couldn't be GPL'ed.)
> If you're interested, I can clean up the project and make
> sure the existing files are properly published.
Look, since your company is happy with the code being PD, then maybe you
should just slip me a copy in email, and I will re-work it (using your PD code
as a specimen/example) into a form that would be sufficiently "my own work"
(albeit based on a PD work) to be submittable. IIRC, the WINE headers are
GPL'd[*], so I'll use them for any definitions I need.
cheers,
DaveK
[*] - I didn't R quite C; they are in fact LGPL'd. That is just as good for
the purposes discussed here.
--
Can't think of a witty .sigline today....
More information about the Cygwin-talk
mailing list