[MPlayer-cvslog] r34781 - trunk/sub/sub_cc.c
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sat Mar 3 15:01:53 CET 2012
On Fri, Mar 02, 2012 at 02:32:31PM +0100, compn wrote:
> Author: compn
> Date: Fri Mar 2 14:32:29 2012
> New Revision: 34781
>
> Log:
> subcc switch nonascii characters to hex, patch by frogs on irc
>
> Modified:
> trunk/sub/sub_cc.c
>
> Modified: trunk/sub/sub_cc.c
> ==============================================================================
> --- trunk/sub/sub_cc.c Tue Feb 28 20:31:56 2012 (r34780)
> +++ trunk/sub/sub_cc.c Fri Mar 2 14:32:29 2012 (r34781)
> @@ -65,16 +65,16 @@ static void build_char_table(void)
> 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 */
I think it would be useful to know which character each of these is.
I don't really care whether it's the character itself as UTF-8
in the comment or a description like "a acute".
No idea if it's a good idea or whether clang will accept it,
but if we assume string literals are encoded as UTF-8
something like GET_UTF8("ñ") would probably work, too.
More information about the MPlayer-cvslog
mailing list