Actions
Bug #2616
openUmlaute im Radiotext werden nicht angezeigt
Status:
New
Priority:
Normal
Assignee:
-
Start date:
01/13/2021
Due date:
% Done:
0%
Estimated time:
Description
char ist normalerweise signed, dadurch werden Werte > 128 negativ
Folgender Fix behebt das Problem
--- a/radioaudio.c
+++ b/radioaudio.c
@@ -575,7 +575,7 @@ void cRadioAudio::RadiotextDecode(unsign
char temptext[RT_MEL];
memset(temptext, 0x20, RT_MEL - 1);
for (int i = 1, ii = 0; i < mtext[8]; i++) {
- char c = mtext[9 + i];
+ unsigned char c = mtext[9 + i];
if ((c >= 0x20) && (c <= 0xfe)) {
// additional rds-character, see RBDS-Standard, Annex E
temptext[ii++] = (c >= 0x80) ? rds_addchar[c - 0x80] : c;
No data to display
Actions