No setlocale on windows

@icewind1991 @karlitschek @bartv2 THX