From 8d28c98ae0e702ebfa56a996ce9332a5b071d926 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 14 Mar 2020 10:31:01 +0200 Subject: [PATCH] Fix display of Big5 characters when using Fontconfig * src/ftfont.c (fc_charset_table): Fix the value of the big-5 representative codepoint. Reported by Brian Schack . (Bug#40057) * src/macfont.m (cf_charset_table): Adjust the comment. --- src/ftfont.c | 2 +- src/macfont.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ftfont.c b/src/ftfont.c index 219e21408e8..2b442ead4bf 100644 --- a/src/ftfont.c +++ b/src/ftfont.c @@ -102,7 +102,7 @@ static struct { "iso8859-15", { 0x00A0, 0x00A1, 0x00D0, 0x0152 }}, { "iso8859-16", { 0x00A0, 0x0218}}, { "gb2312.1980-0", { 0x4E13 }, "zh-cn"}, - { "big5-0", { 0xF6B1 }, "zh-tw" }, + { "big5-0", { 0x9C21 }, "zh-tw" }, { "jisx0208.1983-0", { 0x4E55 }, "ja"}, { "ksc5601.1985-0", { 0xAC00 }, "ko"}, { "cns11643.1992-1", { 0xFE32 }, "zh-tw"}, diff --git a/src/macfont.m b/src/macfont.m index c1bc30ff3ec..c589b6685eb 100644 --- a/src/macfont.m +++ b/src/macfont.m @@ -664,7 +664,7 @@ static struct { "iso8859-15", { 0x00A0, 0x00A1, 0x00D0, 0x0152 }}, { "iso8859-16", { 0x00A0, 0x0218}}, { "gb2312.1980-0", { 0x4E13 }, CFSTR ("zh-Hans")}, - { "big5-0", { /* 0xF6B1 in ftfont.c */ 0x4EDC }, CFSTR ("zh-Hant") }, + { "big5-0", { /* 0x9C21 in ftfont.c */ 0x4EDC }, CFSTR ("zh-Hant") }, { "jisx0208.1983-0", { 0x4E55 }, CFSTR ("ja")}, { "ksc5601.1987-0", { 0xAC00 }, CFSTR ("ko")}, { "cns11643.1992-1", { 0xFE32 }, CFSTR ("zh-Hant")}, -- 2.39.2