wx.StyledTextCtrl and utf-8

Hi,

>> Oleg Popov wrote:
>>> I'm having trouble with wx.StyledTextCtrl ( wxPython 2.5.1
>>> compiled from source gtk2+unicode support ). wx.StyledTextCtrl
>>> shows russian characters fine, and I can paste from clipboard
>>> russian text too. But I can't enter any character when keyboard
>>> layout is russian.

>> Robin Dunn wrote: I suppose it's possible that the key/char events
>> are not being delivered the same... Please do an experiment for me.
>> Run the KeyEvent.py sample in the demo directory, check the "Call
>> evt.Skip..." box, click in the blue box so it gets the focus, and
>> then compare how it works between the two different layouts when
>> typing various keys, especially the modifiers.

> I did that experiment.
> Results:
> -------------------------------
> 1)English layout:
> Every key sends 2 events-KeyDown and KeyUp
> Modifiers send the same
> -------------------------------
> 2)Russian layout: All character keys send nothing,
> All modifiers send 2 events:KeyDown and KeyUp
> ----------------------------

Grrr... That's worse than I thought.

But most of widgets (lTextCtrl,
Choice, Label, Radio...) works
fine with several European and Russian locales.

> Maybe I must add differnet "key translation table" into wxWidget
> source and recompile all?

No GTK should be taking care of it, and it probably is, but wxWidgets is
not getting the notifications and generating the key/char events
properly. Please enter a bug report about this (using a category of
"wxGTK specific") as I don't know enough about alternate keyboard
layouts and input methods on X windows to persue it myself. (Although I
could give it a shot if somebody will describe how to setup my system to
do it.)

Thank You, Robin.
I don't think that You have so much free time.
I will investigate the source.

Popov Oleg

ยทยทยท

----------------