Add charset support to wxLocaleIdent and accessors

Charset is important for Unix systems as some locales may not be
available without it, e.g. "xx_XX" may not be supported, but
"xx_XX.utf8" could be.
This commit is contained in:
Vadim Zeitlin
2021-08-30 01:05:14 +02:00
parent 20e3697f00
commit 592e1678ce
3 changed files with 57 additions and 3 deletions

View File

@@ -67,6 +67,9 @@ wxString wxLocaleIdent::GetName() const
if ( !m_region.empty() )
name << "_" << m_region;
if ( !m_charset.empty() )
name << "." << m_charset;
if ( !m_modifier.empty() )
name << "@" << m_modifier;
}