Re: CustomTreeCtrl bug with multi-byte Unicode text

obdev <[email protected]>
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
As an update, I see similar behaviour with Phoenix.

This on Linux; I'll try Mac later.

PS when building Phoenix, make sure you have already installed all the 
pre-requisite packages. The configure script will not pick some of these 
up, e.g. webkit. Guess how I know this ;)

---- 

Linux mint 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 
x86_64 x86_64 x86_64 GNU/Linux

Python 2.7.6 (default, Oct 26 2016, 20:30:19) 
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> wx.version()
'4.0.0a1 gtk2 (phoenix)'
>>> 

Traceback (most recent call last):
  File 
"/usr/local/lib/python2.7/dist-packages/wx/lib/agw/hypertreelist.py", line 
3291, in OnPaint
    y, x_maincol = self.PaintLevel(self._anchor, dc, 0, 0, x_maincol)
  File 
"/usr/local/lib/python2.7/dist-packages/wx/lib/agw/hypertreelist.py", line 
3198, in PaintLevel
    y, x_maincol = self.PaintLevel(child, dc, level+1, y, x_maincol)
  File 
"/usr/local/lib/python2.7/dist-packages/wx/lib/agw/hypertreelist.py", line 
3198, in PaintLevel
    y, x_maincol = self.PaintLevel(child, dc, level+1, y, x_maincol)
  File 
"/usr/local/lib/python2.7/dist-packages/wx/lib/agw/hypertreelist.py", line 
3198, in PaintLevel
    y, x_maincol = self.PaintLevel(child, dc, level+1, y, x_maincol)
  File 
"/usr/local/lib/python2.7/dist-packages/wx/lib/agw/hypertreelist.py", line 
3198, in PaintLevel
    y, x_maincol = self.PaintLevel(child, dc, level+1, y, x_maincol)
  File 
"/usr/local/lib/python2.7/dist-packages/wx/lib/agw/hypertreelist.py", line 
3198, in PaintLevel
    y, x_maincol = self.PaintLevel(child, dc, level+1, y, x_maincol)
  File 
"/usr/local/lib/python2.7/dist-packages/wx/lib/agw/hypertreelist.py", line 
3198, in PaintLevel
    y, x_maincol = self.PaintLevel(child, dc, level+1, y, x_maincol)
  File 
"/usr/local/lib/python2.7/dist-packages/wx/lib/agw/hypertreelist.py", line 
3109, in PaintLevel
    self.PaintItem(item, dc)
  File 
"/usr/local/lib/python2.7/dist-packages/wx/lib/agw/hypertreelist.py", line 
3009, in PaintItem
    text = ChopText(dc, text, maxsize)
  File 
"/usr/local/lib/python2.7/dist-packages/wx/lib/agw/customtreectrl.py", line 
652, in ChopText
    x, y = dc.GetTextExtent(s)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd8 in position 53: 
invalid continuation byte


On Saturday, 22 April 2017 18:40:00 UTC+1, obdev wrote:
>
> Hi
>
> ...
>

-- 
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.