[glib] gdbus-codegen: Set source coding to utf-8



commit 261cb8ea865ce5875d2f002e510664368b88b5bb
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Mon Jan 15 16:58:10 2018 +0100

    gdbus-codegen: Set source coding to utf-8
    
    Some of the recent changes introduced UTF-8 characters which made
    gdbus-codegen to crash when using Python 2.
    
    Following PEP 263, the utf-8 coding comment has been used.
    
    PEP: https://www.python.org/dev/peps/pep-0263/
    BUG: https://bugzilla.gnome.org/show_bug.cgi?id=791015
    
    Signed-off-by: Emmanuele Bassi <ebassi gnome org>

 gio/gdbus-2.0/codegen/codegen.py      |    1 +
 gio/gdbus-2.0/codegen/codegen_main.py |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gio/gdbus-2.0/codegen/codegen.py b/gio/gdbus-2.0/codegen/codegen.py
index 543c41e..6de78d2 100644
--- a/gio/gdbus-2.0/codegen/codegen.py
+++ b/gio/gdbus-2.0/codegen/codegen.py
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# coding=utf-8
 
 # GDBus - GLib D-Bus Library
 #
diff --git a/gio/gdbus-2.0/codegen/codegen_main.py b/gio/gdbus-2.0/codegen/codegen_main.py
index baf4266..47336c8 100755
--- a/gio/gdbus-2.0/codegen/codegen_main.py
+++ b/gio/gdbus-2.0/codegen/codegen_main.py
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# coding=utf-8
 
 # GDBus - GLib D-Bus Library
 #


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]