GNOME Bugzilla – Bug 667044
Program abort when setting empty encoding (python bindings)
Last modified: 2014-04-22 17:22:34 UTC
I've used it with python, here is the log: $ python Python 2.7.2+ (default, Oct 4 2011, 20:06:09) [GCC 4.6.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import vte >>> a=vte.Terminal() >>> a.set_encoding('') ** Vte-0.0:ERROR:/build/buildd/vte-0.28.2/./src/vteconv.c:137:_vte_conv_open: assertion failed: (strlen(target) > 0) Aborted And instead of just throwing an exception or an error message the program aborts, as far as I know, only happens when the encoding is an empty string. System is an ubuntu 11.10 x86_64 with the packages: ackage: libvte9 Versions: 1:0.28.2-0ubuntu2 Package: python-vte Versions: 1:0.28.2-0ubuntu2 Thanks, David
0.28 is obsolete and the old-style python bindings are gone from newer versions. However the problem is in the C code itself.... not sure if this is a case of programmer error (-> g_return_if_fail) or not...