[r23011]Bug 7036: [Win32]Setting LANG crashes Gramps

Also fixes Bug 6919: No automatic language selection in Windows
Thanks to Helge Herz.

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@23012 4ae1f11a-8b86-4847-b8af-ab372f36d1fd