Lines Matching refs:charset
44 const char *value, *type, *subtype, *charset;
49 /* text/ subtypes default to charset ISO-8859-1, per 2616. */
51 /* text/xml defaults to charset us-ascii, per 3280 */
55 /* 2616 doesn't *say* that charset can be quoted, but bets are
57 { "text/xml; charset=utf-8", TXU },
58 { "text/xml; charset=utf-8; foo=bar", TXU },
59 { "text/xml;charset=utf-8", TXU },
60 { "text/xml ;charset=utf-8", TXU },
61 { "text/xml;charset=utf-8;foo=bar", TXU },
62 { "text/xml; foo=bar; charset=utf-8", TXU },
63 { "text/xml; foo=bar; charset=utf-8; bar=foo", TXU },
64 { "text/xml; charset=\"utf-8\"", TXU },
65 { "text/xml; charset='utf-8'", TXU },
66 { "text/xml; foo=bar; charset=\"utf-8\"; bar=foo", TXU },
68 /* badly quoted charset should come out as NULL */
69 { "foo/lemon; charset=\"utf-8", "foo", "lemon", NULL },
80 ct.type = ct.subtype = ct.charset = ct.value = "unset";
110 ONV(ctypes[n].charset && ct.charset == NULL,
111 ("for `%s': charset unset", ctypes[n].value));
113 ONV(ctypes[n].charset == NULL && ct.charset != NULL,
114 ("for `%s': unexpected charset `%s'", ctypes[n].value,
115 ct.charset));
117 ONV(ctypes[n].charset && ct.charset &&
118 strcmp(ctypes[n].charset, ct.charset),
119 ("for `%s': charset was `%s'", ctypes[n].value, ct.charset));