ask locale module to do the job of detecting LANG; this now works in Windows. thanks Stian for testing