Re[2]: Cannot enter non-English characters
Vadim Zeitlin <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 31 Jan 2025 22:02:20 -0800 (PST) Сергей Коныгин wrote:
> Using wxUILocale::UseDefault() solves this problem.
> But the translation between floating point numbers and strings stops
> working (as I understand it, the dot changes to a comma). Can I
> independently set the decimal point?
No, unfortunately GTK requires C locale to be set to correspond to the
language used by the program. You can use either wx-provided functions such
as wxString:ToCDouble() and FromCDouble(), or C++ [io]stringstream, for
which you can call imbue(std::locale::classic()), for locale-independent
formatting.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
https://www.tt-solutions.com/
signature.asc
(application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCZ548RwAKCRAG6kHeT2we hh93AJ9/qdo6cL5O26TaAjOmVSAKxYKtwgCgqy/b9uhWM2rJ4KMdoc6ZjBj+VMA= =VlDY -----END PGP SIGNATURE-----