mimic: needs wchar support