[MPlayer-dev-eng] [PATCH] fix compile with clang r150242

compn tempn at twmi.rr.com
Sat Feb 25 00:50:33 CET 2012


passing a patch on from irc:
-compn


sub/sub_cc.c:68:19: error: illegal character encoding in character literal
  chartbl[0x2a] = 'á';
                  ^
sub/sub_cc.c:69:19: error: illegal character encoding in character literal
  chartbl[0x5c] = 'é';
                  ^
sub/sub_cc.c:70:19: error: illegal character encoding in character literal
  chartbl[0x5e] = 'í';
                  ^
sub/sub_cc.c:71:19: error: illegal character encoding in character literal
  chartbl[0x5f] = 'ó';
                  ^
sub/sub_cc.c:72:19: error: illegal character encoding in character literal
  chartbl[0x60] = 'ú';
                  ^
sub/sub_cc.c:73:19: error: illegal character encoding in character literal
  chartbl[0x7b] = 'ç';
                  ^
sub/sub_cc.c:74:19: error: illegal character encoding in character literal
  chartbl[0x7c] = '÷';
                  ^
sub/sub_cc.c:75:19: error: illegal character encoding in character literal
  chartbl[0x7d] = 'Ñ';
                  ^
sub/sub_cc.c:76:19: error: illegal character encoding in character literal
  chartbl[0x7e] = 'ñ';
                  ^
sub/sub_cc.c:77:19: error: illegal character encoding in character literal
  chartbl[0x7f] = '¤';    /* FIXME: this should be a solid block */
                  ^
10 errors generated.
gmake: *** [sub/sub_cc.o] Error 1

Index: sub/sub_cc.c
===================================================================
--- sub/sub_cc.c	(revision 34760)
+++ sub/sub_cc.c	(working copy)
@@ -65,16 +65,16 @@
   for (i = 0; i < 128; i++)
     chartbl[i] = (char) i;
   /* now the special codes */
-  chartbl[0x2a] = 'á';
-  chartbl[0x5c] = 'é';
-  chartbl[0x5e] = 'í';
-  chartbl[0x5f] = 'ó';
-  chartbl[0x60] = 'ú';
-  chartbl[0x7b] = 'ç';
-  chartbl[0x7c] = '÷';
-  chartbl[0x7d] = 'Ñ';
-  chartbl[0x7e] = 'ñ';
-  chartbl[0x7f] = '¤';    /* FIXME: this should be a solid block */
+  chartbl[0x2a] = 0xe1;
+  chartbl[0x5c] = 0xe9;
+  chartbl[0x5e] = 0xed;
+  chartbl[0x5f] = 0xf3;
+  chartbl[0x60] = 0xfa;
+  chartbl[0x7b] = 0xe7;
+  chartbl[0x7c] = 0xf7;
+  chartbl[0x7d] = 0xd1;
+  chartbl[0x7e] = 0xf1;
+  chartbl[0x7f] = 0xa4;    /* FIXME: this should be a solid block */
 }
 
 static void clear_buffer(subtitle *buf)


More information about the MPlayer-dev-eng mailing list