Drat, typo alert: > It looks to me like that 'if' statement should read > if (mbstowcs (*wcs_path, *mbs_path, len) ... if (mbstowcs (*wcspath, mbs_path, len) ... ..mark