Lines Matching defs:charset
119 * Checks if the specified charset is equivalent to UTF-8.
123 check_utf8(const char *charset)
131 if (strcmp(charset, DEST_CHARSET) == 0)
151 charset_len = search_alias(&p, buflen, charset);
157 c_charset = (char *)charset;
171 * Entry for neither charset nor utf8 found
183 conv_init(const char *charset)
185 if (charset == NULL) {
192 if (check_utf8(charset)) {
200 cd = iconv_open(DEST_CHARSET, charset);
206 cur_line, cur_po, charset, DEST_CHARSET);
328 char *charset, *nplurals, *tmp, *p;
422 * Need to extract the charset information
424 charset = strstr(str->str, CHARSET_STR);
425 if (charset == NULL) {
426 /* no charset information */
431 charset += CHARSET_LEN;
432 p = strpbrk(charset, " \t\n");
435 len = p - charset;
438 len = strlen(charset);
441 (void) memcpy(tmp, charset, len);
443 charset = tmp;
444 conv_init(charset);
445 free(charset);