So I see two solutions: (1) make a hard break and change the whole winefile to Unicode. For unixcalls.c you can rely on the Windows API for manipulating Unicode
I can't find a replacement for wcsrchr() in the windows API, so I have to include my own implementation in the source. There is also no equivalent of towupper(), so I have to change the pattern matching function a bit.
wcsrchr() is problematic, but can probalby be done with CharPrevW() loops.
CharUpperW() is towupper().
Ciao, Marcus