Ignore empty LC_XXX variables in locale detection code.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 5 Feb 2013 20:46:26 +0000 (20:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 5 Feb 2013 20:46:26 +0000 (20:46 +0000)
commit968b44d37b9fcdc5232fb68312a65e4fc6b5f4ab
treedbdbacdda567d0c4b165d4fd4601952f4245a263
parent4da0f1bb88822dba566854b609e520e48cb4f68e
Ignore empty LC_XXX variables in locale detection code.

If LC_ALL or LC_MESSAGES is set but empty, ignore it and use the next
environment variable. This is consistent with the standard setlocale()
behaviour which only uses LC_ALL if it is set and not empty.

Closes #15006.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/intl.cpp