-cat <<EOF | gperf -Nmutt_canonical_charset_aux -m16 -l -t -C -F", NULL"
+cat <<EOF | gperf -Ncharset_canonicalize_aux -m16 -l -E -t -C -F", NULL"
%{
/*
* This program is free software; you can redistribute it and/or modify
* encoding name, hence you have to pass a charset stripped from its '-' and
* '_' and truncated at the first ':' encountered.
*/
+
+static const struct cset_pair *
+charset_canonicalize_aux(const char *str, unsigned int len);
%}
struct cset_pair { const char *name; const char *pref; };
%%
pck, "shift_jis"
sjis, "shift_jis"
us, "us-ascii"
+utf8, "utf-8"
zhtwbig5, "big5"
646, "us-ascii"
%%