From: Anders Kaseorg Date: Mon, 12 Aug 2013 23:20:37 +0000 (-0400) Subject: TracZephyrPlugin: Set Zephyr charset to UTF-8 X-Git-Url: https://snippets.scripts.mit.edu/gitweb.cgi/Scripts/git/.git/commitdiff_plain/5949ebc53c19c64be3ed1e7892048c7b4d264dca TracZephyrPlugin: Set Zephyr charset to UTF-8 This way we don’t need to rely on a UTF-8 locale from the environment. Signed-off-by: Anders Kaseorg --- diff --git a/TracZephyrPlugin/ZephyrPlugin.py b/TracZephyrPlugin/ZephyrPlugin.py index a1978b6..0c904b4 100644 --- a/TracZephyrPlugin/ZephyrPlugin.py +++ b/TracZephyrPlugin/ZephyrPlugin.py @@ -18,7 +18,7 @@ class ZephyrPlugin(Component): return command = shlex.split(self.config.get('ZephyrPlugin', 'command').encode('utf-8')) if not command: - command = ['zwrite', '-q', '-l', '-d'] + command = ['zwrite', '-q', '-l', '-d', '-x', 'UTF-8'] opcode = self.config.get('ZephyrPlugin', 'opcode') if opcode: command += ['-O', opcode]