From: Martin Mares Date: Thu, 1 Mar 2001 17:31:47 +0000 (+0000) Subject: Fixed bug in generating UTF-8 for codes >= 0x800. X-Git-Tag: holmes-import~1539 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=1757dc68bf4360ab9a88021fe99d1aa4e78cf684;p=libucw.git Fixed bug in generating UTF-8 for codes >= 0x800. --- diff --git a/charset/charconv.c b/charset/charconv.c index c5d3717b..996495ca 100644 --- a/charset/charconv.c +++ b/charset/charconv.c @@ -181,7 +181,7 @@ conv_to_utf8(struct conv_context *c) { if (d + 3 > de) goto dend; - *d++ = 0xc0 | (code >> 12); + *d++ = 0xe0 | (code >> 12); *d++ = 0x80 | ((code >> 6) & 0x3f); *d++ = 0x80 | (code & 0x3f); }