From c386d8bdd0fc4e29be2e7acc61e5ee84fd52d1f9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 25 Sep 2001 04:27:59 +0000 Subject: allow all ucs2 chars in utf8, rather than mapping some to a single char like libiconv does (This used to be commit e13e8b190c70136cb2c3588bdcf7328a7f61d152) --- source3/lib/iconv.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'source3') diff --git a/source3/lib/iconv.c b/source3/lib/iconv.c index a8962726e0..05292264c2 100644 --- a/source3/lib/iconv.c +++ b/source3/lib/iconv.c @@ -529,16 +529,7 @@ static size_t utf8_push(void *cd, char **inbuf, size_t *inbytesleft, unsigned char *uc = (unsigned char *)*inbuf; int len=1; - if ((uc[1] & 0xf8) == 0xd8) { - if (*outbytesleft < 3) { - DEBUG(0,("short utf8 write\n")); - goto toobig; - } - c[0] = 0xed; - c[1] = 0x9f; - c[2] = 0xbf; - len = 3; - } else if (uc[1] & 0xf8) { + if (uc[1] & 0xf8) { if (*outbytesleft < 3) { DEBUG(0,("short utf8 write\n")); goto toobig; -- cgit