Subject: Re: bug#66660: [PATCH] Fix dns-mode-syntax-table

From: Lassi Kortela <[email-masked]>
Date: Sat, 21 Oct 2023 12:49:18 +0300

> Thanks, this seems to have already been fixed on master:

Indeed. My apologies. I did not realize that.

> However, the patch on master only has:
> 
> +    (modify-syntax-entry ?\" "\""   table)
> 
> But your patch has this:
> 
> +    (modify-syntax-entry ?\" "\"" table)
> +    (modify-syntax-entry ?\\ "\\" table)
> 
> Do we need the second line there, too?  If yes, why?

Quoting from <https://datatracker.ietf.org/doc/html/rfc1035>:

<character-string> is expressed in one or two ways: as a contiguous set
of characters without interior spaces, or as a string beginning with a "
and ending with a ".  Inside a " delimited string any character can
occur, except for a " itself, which must be quoted using \ (back slash).