- SatcoDX (.sdx): fixed handling of format version 105, which contains trailing data after the last channel

- SatcoDX: changing the character set in the menu now instantly corrects channel names with non-ASCII characters
This commit is contained in:
Horst Beham
2021-03-27 16:54:53 +01:00
parent 9387fb19c1
commit 7da7768495
7 changed files with 830 additions and 16 deletions

View File

@@ -156,12 +156,12 @@ namespace ChanSort.Api
}
if (ch == '\0')
{
// read as many bytes as necessary to get a character
// read as many bytes as necessary to get a character. Note that the decoder keeps internal state of all previously unprocessed bytes
char[] charArray = new char[5];
int byteCnt;
for (byteCnt = 1; decoder.GetChars(name, i, byteCnt, charArray, 0) == 0; byteCnt++)
{
}
while (c < len && decoder.GetChars(name, i++, 1, charArray, 0) == 0)
c++;
if (c >= len)
break;
ch = charArray[0];
}
if (ch == '\0')