Improve check for ASCII locale in wxGTK initialization code.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 11 Nov 2010 12:09:30 +0000 (12:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 11 Nov 2010 12:09:30 +0000 (12:09 +0000)
commitf32848c53f72a444cce8212feff60a2eecc52750
tree756fe61f7938194a7a6760b7c88e6385abb1dbf3
parent6c4d607e60293cdd7e9774ad0a5af224882d91e5
Improve check for ASCII locale in wxGTK initialization code.

Use wxFontMapper::GetEncodingFromName() to check if the current locale
encoding is ASCII instead of just comparing the name with "US-ASCII" which is
not the name used by most platforms (e.g. current Linux systems call this
encoding "ANSI_X3.4-1968").

This avoid creating a wxCSConv object for ASCII encoding unnecessarily on
startup.

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