http://bugs.winehq.org/show_bug.cgi?id=17956
--- Comment #22 from Emmanuel Anne emmanuel.anne@gmail.com 2012-07-09 13:54:59 CDT --- (In reply to comment #21)
I see now: it fails when the directory name contains uppercase characters, but works when it contains only lowercase characters. This one fails: WINEPREFIX=~/Test winecfg
This one works: WINEPREFIX=~/test winecfg
Yes, it's normal, you could call that the price of speed, everything has to be in lower case for everything to work after this. All the files created by wine will be in lower case, but if you uncompress a bg2 mod in linux for example, you'd better run tolower.pl again after that. If you forget it's not that important anyway, you'll simply eventually get an error when the mod tries to install (if it has some files with mixed lower/upper case letters) and then it will revert to its previous status, so you can run tolower after that and try again.
The problem is that when the full path of the file arrives at the functions I worked on, it already contains the wine prefix, so it's hard to know which is which.
Ok, I guess it's enough info to send the patch, they'll do what they want with it, thanks for testing !