Convert non-ASCII characters to UTF-8 or C-string literals

Comments are converted to UTF-8.

Strings which are part of executable code are converted using C-string hex literals. A comment with the intended UTF-8 character is appended to such lines.

The "c"-looking character in mpa.c was actually a small cyrillic "s" (i.e. "с").

Change-Id: If3a889080ef60b8bf756ad9ada38baede93ce35b
This commit is contained in:
Vencislav Atanasov 2024-12-12 20:45:10 +02:00 committed by Solomon Peachy
parent 5d7c8a0df1
commit 1468649258
5 changed files with 25 additions and 25 deletions

View file

@ -458,7 +458,7 @@ short unstable_getpacket (short *other, char *bufptr)
{
/* GOOD! Take second half of double packet */
#if (PRINTERRORS)
printf("\n%ld-%ld .û ",gcom->buffer[0],(gcom->buffer[0]+1)&255);
printf("\n%ld-%ld .\xFB ",gcom->buffer[0],(gcom->buffer[0]+1)&255); /* √ */
#endif
messleng = ((long)gcom->buffer[3]) + (((long)gcom->buffer[4])<<8);
lastpacketleng = gcom->numbytes-7-messleng;
@ -478,7 +478,7 @@ short unstable_getpacket (short *other, char *bufptr)
if ((gcom->buffer[1]&128) == 0) /* Single packet */
{
#if (PRINTERRORS)
printf("\n%ld û ",gcom->buffer[0]);
printf("\n%ld \xFB ",gcom->buffer[0]); /* √ */
#endif
messleng = gcom->numbytes-5;
@ -491,7 +491,7 @@ short unstable_getpacket (short *other, char *bufptr)
/* Double packet */
#if (PRINTERRORS)
printf("\n%ld-%ld ûû ",gcom->buffer[0],(gcom->buffer[0]+1)&255);
printf("\n%ld-%ld \xFB\xFB ",gcom->buffer[0],(gcom->buffer[0]+1)&255); /* √√ */
#endif
messleng = ((long)gcom->buffer[3]) + (((long)gcom->buffer[4])<<8);