cubicweb-mediaplayer #12266506 UnicodeDecodeError when reencoding a medial file fail [validation pending]

an error when reencoding a media file which name is not ascii may lead to an encoding error:

unexpected: 'ascii' codec can't decode byte 0xc3 in position 2087: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/share/cubicweb/cubes/mediaplayer/sobjects.py", line 68, in perform
result = performer.perform_task(self.cw_cnx, task)
File "/usr/share/cubicweb/cubes/mediaplayer/entities/__init__.py", line 274, in perform_task
sound_file.reencode()
File "/usr/share/cubicweb/cubes/mediaplayer/entities/__init__.py", line 150, in reencode
ReST / HTML errors:System Message: WARNING/2 (&lt;string&gt; , line 10)</p>
Literal block ends without a blank line; unexpected unindent.
outputs = media.reencode_sound(self, outputs)
File "/usr/share/cubicweb/cubes/mediaplayer/utils/media.py", line 118, in reencode_sound _quiet_call(cmd, cwd=tmp.root) File "/usr/share/cubicweb/cubes/mediaplayer/utils/media.py", line 294, in _quiet_call msg = _FAIL_TEXT % (sub.returncode, formated_call, out, err) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2087: ordinal not in range(128)
prioritynormal
typebug
done in0.2.1
load left0.000
closed by#91df3c774255 [media] fix an encoding error in case of error during media reencoding (closes #12266506)
patch[test] add a test to check error handling when reencoding a file with non-ascii name [applied][media] fix an encoding error in case of error during media reencoding (closes #12266506) [applied]