Cabal's system_default_prefix

Wolfgang Thaller wolfgang.thaller at gmx.net
Mon Jan 31 17:24:29 EST 2005


Sven Panne wrote:

> I've just seen
>
>    system_default_prefix :: PackageDescription -> String
>    #ifdef mingw32_TARGET_OS
>    system_default_prefix PackageDescription{package=pkg} =
>      "C:\\Program Files\\" ++ pkgName pkg
>    #else
>    system_default_prefix _ =
>      "/usr/local"
>    #endif

And what about Windows' nasty habit of localising the name of that 
directory?
Should we look up the Win32 call used to find out the real name of that 
directory (e.g. C:\Programme on German-language systems) and use that 
instead?

The fact that I always get one big "Programme" directory and a small 
"Program Files" directory containing just one program that was too dumb 
to install itself to the right place always annoys me a lot when I use 
Windows.

Cheers,

Wolfgang



More information about the Cvs-libraries mailing list