From: Vadim Zeitlin Date: Fri, 17 Mar 2006 13:49:47 +0000 (+0000) Subject: don't use toupper() with non-ASCII key codes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8c03c8bed161882eb2ddbfa147fb5655fe75748d don't use toupper() with non-ASCII key codes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/accel.cpp b/src/generic/accel.cpp index b9a49a85e6..e19d33c09f 100644 --- a/src/generic/accel.cpp +++ b/src/generic/accel.cpp @@ -93,7 +93,9 @@ wxAcceleratorTable::wxAcceleratorTable(int n, const wxAcceleratorEntry entries[] { const wxAcceleratorEntry& entry = entries[i]; - int keycode = wxToupper(entry.GetKeyCode()); + int keycode = entry.GetKeyCode(); + if ( isascii(keycode) ) + keycode = toupper(keycode); M_ACCELDATA->m_accels.Append(new wxAcceleratorEntry(entry.GetFlags(), keycode,