1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-22 23:30:07 +02:00

Fix for bug 2013

Bug 2013 - Extended ASCII characters in Nyquist plug-ins freeze Audacity

We previously assumed that plug-ins would always be valid UTF8, but
if it isn't then the conversion to wxTextInputStream fails, causing
pgm.ReadLine() to perpetually return a zero length line.
This commit is contained in:
Steve Daulton 2018-11-18 17:51:29 +00:00
parent 0052991551
commit e65e1d39d8

View File

@ -2110,7 +2110,7 @@ bool NyquistEffect::ParseProgram(wxInputStream & stream)
return false; return false;
} }
wxTextInputStream pgm(stream, wxT(" \t"), wxConvUTF8); wxTextInputStream pgm(stream, wxT(" \t"), wxConvAuto());
mCmd = wxT(""); mCmd = wxT("");
mIsSal = false; mIsSal = false;