wxWidgets
wxWidgets copied to clipboard
ó and Ó
t = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE,
wxTextValidator(wxFILTER_ALPHANUMERIC));
when I use on linux gtk I cant type 'ó' and 'Ó' alt-gr o other polisch chars work ok
wxFILTER_ALPHANUMERIC uses wxIsalnum() which is locale-specific, so it would only return true if you use Polish locale (or some other locale in which these characters are valid letters), e.g. if you call wxUILocale::UseDefault() and your actual locale is Polish -- is this is the case?
BTW a related, but different, problem is that if I apply
diff --git a/samples/minimal/minimal.cpp b/samples/minimal/minimal.cpp
index 5f32257c6b..6f41e87543 100644
--- a/samples/minimal/minimal.cpp
+++ b/samples/minimal/minimal.cpp
@@ -170,6 +170,9 @@ MyFrame::MyFrame(const wxString& title)
SetSizer(sizer);
#endif // wxUSE_MENUBAR/!wxUSE_MENUBAR
+ new wxTextCtrl(this, wxID_ANY, {}, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE,
+ wxTextValidator(wxFILTER_ALPHANUMERIC));
+
#if wxUSE_STATUSBAR
// create a status bar just for fun (by def
I can enter both ó and Ó just fine using the "compose" key, even though they should not be accepted in the default locale.