Patch by Thomas Faber: Fix nt version of mbstowcs. See issue #5983 for more details. svn path=/trunk/; revision=51003