1
0
Fork 0
forked from len0rd/rockbox

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);

View file

@ -102,36 +102,36 @@ void TextFrame
}
if ( type == SINGLE_FRAME )
{
DrawText( x1, y1, 'Ú', foreground, background );
DrawText( x2, y1, '¿', foreground, background );
DrawText( x1, y2, 'À', foreground, background );
DrawText( x2, y2, 'Ù', foreground, background );
DrawText( x1, y1, '\xDA', foreground, background ); /* ┌ */
DrawText( x2, y1, '\xBF', foreground, background ); /* ┐ */
DrawText( x1, y2, '\xC0', foreground, background ); /* └ */
DrawText( x2, y2, '\xD9', foreground, background ); /* ┘ */
for( x = x1 + 1; x < x2; x++ )
{
DrawText( x, y1, 'Ä', foreground, background );
DrawText( x, y2, 'Ä', foreground, background );
DrawText( x, y1, '\xC4', foreground, background ); /* ─ */
DrawText( x, y2, '\xC4', foreground, background ); /* ─ */
}
for( y = y1 + 1; y < y2; y++ )
{
DrawText( x1, y, '³', foreground, background );
DrawText( x2, y, '³', foreground, background );
DrawText( x1, y, '\xB3', foreground, background ); /* │ */
DrawText( x2, y, '\xB3', foreground, background ); /* │ */
}
}
if ( type == DOUBLE_FRAME )
{
DrawText( x1, y1, 'É', foreground, background );
DrawText( x2, y1, '»', foreground, background );
DrawText( x1, y2, 'È', foreground, background );
DrawText( x2, y2, '¼', foreground, background );
DrawText( x1, y1, '\xC9', foreground, background ); /* ╔ */
DrawText( x2, y1, '\xBB', foreground, background ); /* ╗ */
DrawText( x1, y2, '\xC8', foreground, background ); /* ╚ */
DrawText( x2, y2, '\xBC', foreground, background ); /* ╝ */
for( x = x1 + 1; x < x2; x++ )
{
DrawText( x, y1, 'Í', foreground, background );
DrawText( x, y2, 'Í', foreground, background );
DrawText( x, y1, '\xCD', foreground, background ); /* ═ */
DrawText( x, y2, '\xCD', foreground, background ); /* ═ */
}
for( y = y1 + 1; y < y2; y++ )
{
DrawText( x1, y, 'º', foreground, background );
DrawText( x2, y, 'º', foreground, background );
DrawText( x1, y, '\xBA', foreground, background ); /* ║ */
DrawText( x2, y, '\xBA', foreground, background ); /* ║ */
}
}
}