Add some debug output to help in debugging locale problems

This is skipped on OS X because that has its own routine to deal with locales

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23766 57a11ea4-9604-0410-9ed3-97b8803252fd