[3263] in BarnOwl Developers
[PATCH] send_zephyr: Set z_charset = ZCHARSET_UTF_8
daemon@ATHENA.MIT.EDU (Anders Kaseorg)
Sun Apr 22 19:29:51 2012
Date: Sun, 22 Apr 2012 19:29:48 -0400 (EDT)
From: Anders Kaseorg <andersk@MIT.EDU>
To: barnowl-dev@mit.edu
This allows X11 zwgc to display BarnOwl=E2=80=99s UTF-8 messages correctly,
since it doesn=E2=80=99t yet autodetect character sets of ZCHARSET_UNKNOWN
messages (http://zephyr.1ts.org/ticket/75).
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
---
zephyr.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/zephyr.c b/zephyr.c
index 1b60491..8cc367e 100644
--- a/zephyr.c
+++ b/zephyr.c
@@ -715,6 +715,9 @@ int send_zephyr(const char *opcode, const char *zsig, c=
onst char *class, const c
=20
notice.z_kind=3DACKED;
notice.z_port=3D0;
+#ifdef ZCHARSET_UTF_8
+ notice.z_charset =3D ZCHARSET_UTF_8;
+#endif
notice.z_class=3Dzstr(class);
notice.z_class_inst=3Dzstr(instance);
if (!strcmp(recipient, "@")) {
--=20
1.7.10