Ticket #9572 (closed defect: fixed)
Incorrect displaying labels of controls that begins from 0xFF letter in ansi build
|Reported by:||kosenko||Owned by:||vadz|
wx 2.8.7 UNICODE=0
msvc 7.1, xp sp2
Tested on OS with codepage windows-1251
In this codepage 0xFF letter is cyrillic Ya http://en.wikipedia.org/wiki/Ya_%28Cyrillic%29
In windows-1252 codepage it looks like it is y with Umlaut (diacritic) letter http://en.wikipedia.org/wiki/Windows_1252, http://en.wikipedia.org/wiki/%C5%B8
Steps to reproduce:
1. Apply samples.patch on minimal sample
2. Run this sample
3. Select Menu/Help/About
Expected result: six controls with XTest label, where X is 0xFF letter in your current codepage
Actual result: wxButton, wxCheckBox, wxStaticText and wxToggleButton has no label. wxTextCtrl has wrong label (Edit). wxComboBox has label as expected.
::CreateWindowEx do not sets correctly labels that begins with 0xFF letter. (But ::SetWindowText works as expected)
Make ::SetWindowText call after creation of all controls in ansi build to do not miss any one.