Bugzilla – Bug 2572
Multi-byte characters may corrupt Json from mod-script-pipe
Last modified: 2021-02-05 15:24:56 UTC
If labels contain multibyte UTF-8 characters, then the Json returned from GetInfo: Type="Labels" is corrupted. The problem appears to be in ScripterCallback.cpp DoSrvMore The number of characters to print is a count of Unicode characters, (and may be multi-byte), but the characters written to the pipe are single byte C string representations. Thus the number of characters that need to be written may be more than the number of characters counted.
Fix committed: https://github.com/audacity/audacity/commit/e7c010c
This fix loses characters from the output string. [Tested on Windows] It is miscounting the characters. REOPENED.
DEVEL - FIX MADE https://github.com/audacity/audacity/commit/a7360e74b728d197517bc0889e849ed9d7c7d626
Tested by Steve (on Linux). RESOLVED FIXED