diff --git a/src/bin/utf8.c b/src/bin/utf8.c index 5aac2f79..4dd360f6 100644 --- a/src/bin/utf8.c +++ b/src/bin/utf8.c @@ -34,27 +34,6 @@ codepoint_to_utf8(Eina_Unicode g, char *txt) txt[4] = 0; return 4; } - else if (g < (1 << (2 + 6 + 6 + 6 + 6))) - { // 111110xx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx - txt[0] = 0xf8 | ((g >> 24) & 0x03); - txt[1] = 0x80 | ((g >> 18) & 0x3f); - txt[2] = 0x80 | ((g >> 12) & 0x3f); - txt[3] = 0x80 | ((g >> 6 ) & 0x3f); - txt[4] = 0x80 | ((g ) & 0x3f); - txt[5] = 0; - return 5; - } - else if ((unsigned int)g < (unsigned int)(1 << (1 + 6 + 6 + 6 + 6 + 6))) - { // 1111110x 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx - txt[0] = 0xfc | ((g >> 30) & 0x01); - txt[1] = 0x80 | ((g >> 24) & 0x3f); - txt[2] = 0x80 | ((g >> 18) & 0x3f); - txt[3] = 0x80 | ((g >> 12) & 0x3f); - txt[4] = 0x80 | ((g >> 6 ) & 0x3f); - txt[5] = 0x80 | ((g ) & 0x3f); - txt[6] = 0; - return 6; - } else { // error - cant encode this in utf8 txt[0] = 0;