int i;
size_t i;
static void canonical_charset (char *dest, size_t dlen, const char *name){  int i;  if (!strncasecmp (name, "x-", 2))    name = name + 2;  for (i = 0; name[i] && i < dlen - 1; i++)  {    if (strchr ("_/. ", name[i]))      dest[i] = '-';    else      dest[i] = tolower (name[i]);  }  dest[i] = '\0';}