[gambit-list] null device on windows

Ralph Moritz ralph.moeritz at outlook.com
Mon Apr 15 12:50:57 EDT 2013


On Mon, 15 Apr 2013 18:29:16 +0200, Marc Feeley <feeley at iro.umontreal.ca>  
wrote:

> On 2013-04-12, at 6:29 PM, Ralph Moritz <ralph.moeritz at outlook.com>  
> wrote:
...
>> This brings me to Gambit, via Black Hole. BH contains some code (in
>> compile-load.scm and lib.scm) that assumes `/dev/null' exists. This is
>> obviously not true on Windows where instead we have `NUL'. It's easy
>> enough to modify BH accordingly but the problem remains that Gambit
>> tries to normalize all paths passed to `compile-file-to-target' so we
>> end up with `<absolute path to cwd>\NUL' instead of just `NUL'. This
>> essentially prevents us from using the null device as input to
>> `compile-file-to-target' on Windows
...
> There was an issue with opening UNC filenames (Universal Naming  
> Convention) on Windows that I have now fixed.  So now it is possible to  
> use \\.\nul for the nul device (so "/dev/null" should be replaced with  
> "\\\\.\\nul" on Windows).  Note that the path-expansion algorithm will  
> map "nul" to "<cwd>/nul" so a (open-output-file "nul") will open a local  
> file called "nul".  This consistency with Unix is a good thing.

Awesome, thanks a lot for fixing this. Being able to access the null device
on Windows means I can now try to get Black Hole trunk working on Windows.

-- 
Using Opera's mail client: http://www.opera.com/mail/



More information about the Gambit-list mailing list