Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006287OCamlOCaml standard librarypublic2014-01-06 03:442014-02-19 17:22
Assigned To 
PlatformOSOS Version
Product Version4.01.0 
Target VersionFixed in Version 
Summary0006287: FIlename.{Unix,Win32,Cygwin} should be exported
Descriptionstdlib's Filename provides filename handling functions specific for the current OS, but actually it defines for the 3 main flavors: Unix, Win32 and Cygwin. But they are hidden. They should be exported, probably with a small tweak to have the same signatures (for example, has_drive is only defined in Win32.)

I got some bug reports about my software that it does not run under Win32, and it was due to a typical failure of ignoring the drive name. I wrote a fix but it was lousy to test it since Filename.Win32 is not accessible. So far I copied since its license matches with one of my software. But it is just a workaround.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
doligez (administrator)
2014-02-19 17:22

Indeed, when running a program under cygwin that also launches native Windows executables, you need both Filename.Unix.quote and Filename.Win32.quote.

- Issue History
Date Modified Username Field Change
2014-01-06 03:44 furuse New Issue
2014-02-19 17:22 doligez Note Added: 0010954

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker