Hi,

working with revno 1633 and qt gui I've found a couple of unicode
problems:

a) when I press the keys "ñ" or "ç" of my (Spanish) keyboard the
following errors appears in the console (but not in the log pane):

v...@rachael$ Traceback (most recent call last):
  File "/usr/local/src/leo-editor/leo/plugins/qtGui.py", line 4805, in
eventFilter
    tkKey,ch,ignore = self.toTkKey(event)
  File "/usr/local/src/leo-editor/leo/plugins/qtGui.py", line 4929, in
toTkKey
    keynum,text,toString,ch = self.qtKey(event)
  File "/usr/local/src/leo-editor/leo/plugins/qtGui.py", line 4956, in
qtKey
    ch       = g.app.gui.toUnicode(ch)
  File "/usr/local/src/leo-editor/leo/plugins/qtGui.py", line 4453, in
toUnicode
    return unicode(s)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd1 in position
0: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/local/src/leo-editor/leo/plugins/qtGui.py", line 4805, in
eventFilter
    tkKey,ch,ignore = self.toTkKey(event)
  File "/usr/local/src/leo-editor/leo/plugins/qtGui.py", line 4929, in
toTkKey
    keynum,text,toString,ch = self.qtKey(event)
  File "/usr/local/src/leo-editor/leo/plugins/qtGui.py", line 4956, in
qtKey
    ch       = g.app.gui.toUnicode(ch)
  File "/usr/local/src/leo-editor/leo/plugins/qtGui.py", line 4453, in
toUnicode
    return unicode(s)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd1 in position
0: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/local/src/leo-editor/leo/plugins/qtGui.py", line 4805, in
eventFilter
    tkKey,ch,ignore = self.toTkKey(event)
  File "/usr/local/src/leo-editor/leo/plugins/qtGui.py", line 4929, in
toTkKey
    keynum,text,toString,ch = self.qtKey(event)
  File "/usr/local/src/leo-editor/leo/plugins/qtGui.py", line 4956, in
qtKey
    ch       = g.app.gui.toUnicode(ch)
  File "/usr/local/src/leo-editor/leo/plugins/qtGui.py", line 4453, in
toUnicode
    return unicode(s)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd1 in position
0: ordinal not in range(128)

The other observed errors are more complex.

b) Suppose I've a node with no characters out of range(128) in its
headline. I edit the headline and put
something like "Ejecució immediata". Then select a different node,
save the file (everything seems fine),
close it and open it again. The node headline has been reverted to its
initial value.

c) Suppose I've a node with no characters out of range(128) in its
headline. I edit the headline and put
something like "Ejecució immediata". Then, while the node still has
the keyboard focus, I save the file or press
Enter. The node headline becomes "Ejecuci?immediata". Then close the
file and open it again. The node
headline is *not* reverted,
it is still  "Ejecuci?immediata".


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to