[r21829]ImportProGen: Prevent leaking file handle

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@21832 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
[r21830]GrampsLocale: Better initialization from environment

Splits out Win32 and Posix initializations to take account of the
fact that on Win32 setlocale() ignores environment variables and on
Posix it's not necessary to check them because setlocale() does the
right thing.

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@21833 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
[r21831][Bug 6553] Get Datehandler base language

from GRAMPS_LOCALE.calendar

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