Skip to content

Commit

Permalink
explicitly use the UTF-8 bytes for the copyright symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
cjchapman committed Jun 19, 2018
1 parent 065e07c commit 13acc64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion afdko/Tools/Programs/public/lib/source/uforead/uforead.c
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,8 @@ static void setFontDictKey(ufoCtx h, char * keyValue)
{
char * copySymbol;
top->Notice.ptr = keyValue;
copySymbol = strstr(keyValue, "\u00A9"); /* 0xC2, 0xA9 in UTF-8 */
/* look for the (c) symbol U+00A9, which is 0xC2, 0xA9 in UTF-8 */
copySymbol = strstr(keyValue, "\xC2\xA9");
if (copySymbol != NULL)
{
/* if there is a copyright symbol (U+00A9),
Expand Down

0 comments on commit 13acc64

Please sign in to comment.