Searched refs:utf8_buf (Results 1 – 1 of 1) sorted by relevance
106 unsigned char *utf8_buf = NULL, *utf8_end; in file_ascmagic_with_encoding() local140 if ((utf8_buf = CAST(unsigned char *, malloc(mlen))) == NULL) { in file_ascmagic_with_encoding()144 if ((utf8_end = encode_utf8(utf8_buf, mlen, ubuf, ulen)) in file_ascmagic_with_encoding()147 buffer_init(&bb, b->fd, utf8_buf, in file_ascmagic_with_encoding()148 (size_t)(utf8_end - utf8_buf)); in file_ascmagic_with_encoding()308 free(utf8_buf); in file_ascmagic_with_encoding()