From 311134130441cafe8b69c94868dc317f2bdd45ff Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Dec 01 2017 01:47:19 +0000 Subject: handle meeting names with unicode in the name --- diff --git a/meeting.py b/meeting.py index 68e964b..f06c8fb 100644 --- a/meeting.py +++ b/meeting.py @@ -34,6 +34,8 @@ import os import re import stat +from kitchen.text.converters import to_bytes + import writers import items reload(writers) @@ -148,8 +150,8 @@ class Config(object): meetingname = self.M._meetingname.replace('/', '') else: meetingname = channel - path = pattern%locals() - path = time.strftime(path, self.M.starttime) + path = pattern % locals() + path = time.strftime(to_bytes(path), self.M.starttime) # If we want the URL name, append URL prefix and return if url: return os.path.join(self.logUrlPrefix, path) @@ -408,7 +410,7 @@ class MeetingCommands(object): commands = [ "#"+x[3:] for x in dir(self) if x[:3]=="do_" ] commands.sort() self.reply("Available commands: "+(" ".join(commands))) - + class Meeting(MeetingCommands, object):