Fixed linebreak (replace with space) in RDS parser

This commit is contained in:
Sjef Verhoeven PE5PVB
2024-05-17 15:14:24 +02:00
parent 85b3b97c3a
commit a6e86d0a92

View File

@@ -1775,6 +1775,7 @@ void TEF6686::RDScharConverter(const char* input, wchar_t* output, size_t size,
for (size_t i = 0; i < size - 1; i++) {
char currentChar = input[i];
switch (currentChar) {
case 0x0A: if (under && underscore) output[i] = L'_'; else output[i] = L' '; break;
case 0x20: if (under && underscore) output[i] = L'_'; else output[i] = L' '; break;
case 0x21 ... 0x5D: output[i] = static_cast<wchar_t>(currentChar); break;
case 0x5E: output[i] = L''; break;