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 659082 - gdbus-codegen: Single letter namespaces get dropped from symbol names
gdbus-codegen: Single letter namespaces get dropped from symbol names
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
2.29.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2011-09-14 18:33 UTC by Matthew Barnes
Modified: 2011-09-16 19:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matthew Barnes 2011-09-14 18:33:47 UTC
In glib/gio/gdbus-2.0/codegen/codegen.py:

class CodeGenerator:
    def __init__(self, ifaces, namespace, interface_prefix, generate_objmanager, docbook_gen, h, c):
        ...
        if len(namespace) > 1:
            self.ns_upper = utils.camel_case_to_uscore(namespace).upper() + '_'
            self.ns_lower = utils.camel_case_to_uscore(namespace).lower() + '_'
        else:
            self.ns_upper = ''
            self.ns_lower = ''
        ...

The "if" condition should be: len(namespace) > 0
Comment 1 David Zeuthen (not reading bugmail) 2011-09-14 19:21:59 UTC
Sounds good to me.
Comment 2 David Zeuthen (not reading bugmail) 2011-09-16 19:21:37 UTC
Fixed on branch master and glib-2-30.