QutEcoacoustics / audio-analysis

The audio analysis code (AnalysisPrograms.exe) for the QUT Ecoacoustics Research Group
https://ap.qut.ecoacoustics.info/
Apache License 2.0
52 stars 12 forks source link

Audio2Csv fails with certain characters in file name #202

Open peichins opened 5 years ago

peichins commented 5 years ago

audio2csv fails with the following characters in the file name. Below are the paths that I tried and the log files.

/temp/in/dir_/REC_C_20180616_185529🤷‍♂️🤷‍♂️_1_1.wav to /temp/out/ This failed, here is the log: log_20181102T012216Z.txt

However, I tried it with different characters in the filename, and it worked /temp/in/dir_/REC_C_20180616_185529_1_1.wav to `/temp/out/`` This worked, here is the log: log_20181102T013828Z.txt

And I tried the following (only one of that character): /temp/in/dir_/REC_C_20180616_185529🤷‍♂️_1_1.wav This failed, here is the log: log_20181102T014439Z.txt

Originally posted by @peichins in https://github.com/QutEcoacoustics/audio-analysis/pull/201#issuecomment-435245354

atruskie commented 5 years ago

This is a problem with System.Drawing that occurs while drawing a line. Need to debug further.

We might be able to just bypass fixing this if we stop using System.Drawing - see #158

atruskie commented 5 years ago

Another related but separate problem with the Windows Console is that because GDI is used to render Console’s text, and GDI does not support font-fallback, Console is unable to display glyphs for codepoints that don’t exist in the currently selected font!

https://blogs.msdn.microsoft.com/commandline/2018/11/15/windows-command-line-unicode-and-utf-8-output-text-buffer/