1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-17 16:40:07 +02:00

Bug 2137 - Nyquist: Assert when receiving multibyte characters

This commit is contained in:
James Crook 2019-07-16 13:59:59 +01:00
parent 26a0ffc0ae
commit 20772c995d

View File

@ -3199,8 +3199,8 @@ void * nyq_reformat_aud_do_response(const wxString & Str) {
LVAL dst; LVAL dst;
LVAL message; LVAL message;
LVAL success; LVAL success;
wxString Left = Str.BeforeLast('\n').BeforeLast('\n'); wxString Left = Str.BeforeLast('\n').BeforeLast('\n').ToAscii();
wxString Right = Str.BeforeLast('\n').AfterLast('\n'); wxString Right = Str.BeforeLast('\n').AfterLast('\n').ToAscii();
message = cvstring(Left); message = cvstring(Left);
success = Right.EndsWith("OK") ? s_true : nullptr; success = Right.EndsWith("OK") ? s_true : nullptr;
dst = cons(message, success); dst = cons(message, success);