[polari] networks: Add optional charset field to servers
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] networks: Add optional charset field to servers
- Date: Sun, 23 Sep 2018 15:15:16 +0000 (UTC)
commit 28855f9546aecd15bd069b42f54b4f5f72de47f4
Author: Oscar <oscar shrimpton personal gmail com>
Date: Sun Sep 23 12:28:16 2018 +0100
networks: Add optional charset field to servers
Not all networks use UTF-8, so any input and output requires conversion
to avoid garbled characters. Telepathy-idle handles that transparently,
provided the correct 'charset' account property is specified.
For predefined networks, we can simply pass on the option if the network
data specifies it. We'll have to see whether it is worth exposing this
also in the UI and thus supporting custom networks as well.
https://gitlab.gnome.org/GNOME/polari/issues/43
src/networksManager.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/networksManager.js b/src/networksManager.js
index 3a19f86..ea620e3 100644
--- a/src/networksManager.js
+++ b/src/networksManager.js
@@ -81,7 +81,8 @@ var NetworksManager = class {
'account': new GLib.Variant('s', GLib.get_user_name()),
'server': new GLib.Variant('s', server.address),
'port': new GLib.Variant('u', server.port),
- 'use-ssl': new GLib.Variant('b', server.ssl)
+ 'use-ssl': new GLib.Variant('b', server.ssl),
+ 'charset': server.charset ? new GLib.Variant('s', server.charset) : undefined
};
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]