After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 667044 - Program abort when setting empty encoding (python bindings)
Program abort when setting empty encoding (python bindings)
Status: RESOLVED OBSOLETE
Product: vte
Classification: Core
Component: general
0.28.x
Other Linux
: Normal minor
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-12-30 20:05 UTC by David
Modified: 2014-04-22 17:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David 2011-12-30 20:05:24 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
Comment 1 Christian Persch 2012-01-04 15:43:44 UTC
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...