diff --git a/anki/sound.py b/anki/sound.py index c4940ead2..b4cc0df09 100644 --- a/anki/sound.py +++ b/anki/sound.py @@ -161,7 +161,7 @@ def queueMplayer(path): # mplayer on windows doesn't like the encoding, so we create a # temporary file instead. oddly, foreign characters in the dirname # don't seem to matter. - dir = unicode(tmpdir(), sys.getfilesystemencoding()) + dir = tmpdir() name = os.path.join(dir, "audio%s%s" % ( random.randrange(0, 1000000), os.path.splitext(path)[1])) f = open(name, "wb")