diff options
author | Johan Dahlin <johan@gnome.org> | 2010-12-02 14:10:33 -0200 |
---|---|---|
committer | Johan Dahlin <johan@gnome.org> | 2010-12-02 14:10:33 -0200 |
commit | b6405089448ea588989faf1b4bff3aa96cd5c291 (patch) | |
tree | b236aebc6f9593c9b121f7d2ba209c8a9dd0e527 /giscanner/transformer.py | |
parent | aa8b7d2d0f586976ea7399d95e1ccce3000b4734 (diff) | |
download | gobject-introspection-b6405089448ea588989faf1b4bff3aa96cd5c291.tar.gz |
Add proper unicode support to the source scanner
The assumption is that the only allowed source encoding
is utf-8. Always strings as unicode and fix up the transformer
and xml writer to properly output utf-8.
Diffstat (limited to 'giscanner/transformer.py')
-rw-r--r-- | giscanner/transformer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/transformer.py b/giscanner/transformer.py index f07e8d17..4cd24484 100644 --- a/giscanner/transformer.py +++ b/giscanner/transformer.py @@ -608,7 +608,7 @@ raise ValueError.""" return None if symbol.const_string is not None: typeval = ast.TYPE_STRING - value = symbol.const_string + value = unicode(symbol.const_string, 'utf-8') elif symbol.const_int is not None: typeval = ast.TYPE_INT value = '%d' % (symbol.const_int, ) |