> Yes, probably the real solution is to define wmain instead of main, so we > can get our hands on Unicode paths to start with, convert that to UTF-8 > internally, and go from there. Agreed. We really should not try guessing the encoding. Cheers, Rafael