/* Decide in an encoding-independent manner whether a character in an URL must be escaped. The same criterion must be used in strlen_url() and strcpy_url().  */
static bool urlchar_needs_escaping(int c)
/* Decide in an encoding-independent manner whether a character in an URL must be escaped. The same criterion must be used in strlen_url() and strcpy_url().  */
static bool urlchar_needs_escaping(int c)
{
    return !(ISCNTRL(c) || ISSPACE(c) || ISGRAPH(c));
}