[glib] gdbus-codegen: Set source coding to utf-8
- From: Iñigo MartÃnez <inigomartinez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gdbus-codegen: Set source coding to utf-8
- Date: Mon, 15 Jan 2018 16:04:55 +0000 (UTC)
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]