summaryrefslogtreecommitdiff
path: root/vapigen
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2014-10-31 21:38:12 +0100
committerLuca Bruno <lucabru@src.gnome.org>2014-10-31 21:40:18 +0100
commit233903bb78ded3261c7862494d69780465bf8806 (patch)
tree86eb15243f93b56b872742be9fd75efcf2914068 /vapigen
parent540eacac450cb5e7e6d31114a107651c25adf90f (diff)
downloadvala-233903bb78ded3261c7862494d69780465bf8806.tar.gz
Use .ascii_up() instead of .up()
Fixes bug 739393
Diffstat (limited to 'vapigen')
-rw-r--r--vapigen/valagidlparser.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index 48c18a33f..ff7c8d0b8 100644
--- a/vapigen/valagidlparser.vala
+++ b/vapigen/valagidlparser.vala
@@ -176,7 +176,7 @@ public class Vala.GIdlParser : CodeVisitor {
}
private string fix_const_name (string const_name, Symbol container) {
- var pref = get_lower_case_cprefix (container).up ();
+ var pref = get_lower_case_cprefix (container).ascii_up ();
if (const_name.has_prefix (pref)) {
return const_name.substring (pref.length);
}
@@ -278,7 +278,7 @@ public class Vala.GIdlParser : CodeVisitor {
if (sym is ObjectTypeSymbol) {
return get_cname (sym);
} else if (sym is Enum || sym is ErrorDomain) {
- return "%s_".printf (get_lower_case_cname (sym).up ());
+ return "%s_".printf (get_lower_case_cname (sym).ascii_up ());
} else if (sym is Namespace) {
if (sym.name != null) {
var cprefix = sym.get_attribute_string ("CCode", "cprefix");