Skip Menu |

This queue is for tickets about the Net-DNS CPAN distribution.

Report information
The Basics
Id: 77444
Status: resolved
Priority: 0/
Queue: Net-DNS

People
Owner: Nobody in particular
Requestors: FELIPE [...] cpan.org
Cc: felipe [...] felipegasper.com
AdminCc:

Bug Information
Severity: Important
Broken in: 0.68
Fixed in: (no value)



CC: felipe [...] felipegasper.com
Subject: _build_char_str_list() kills \DDD
RFC 1035 describes being able to encode any octet using \DDD, where DDD is a 3-digit decimal sequence corresponding to the octet. _build_char_str_list() executes Text::ParseWords::shellwords() on each line of the zone file. shellwords(), though, gets rid of the backslash in a string like: hello\059 A reasonable solution seems to be to use: quotewords( '\s+', 1, $line ) …instead of shellwords. This preserves the \ and allows for full(er) support of the RFC spec.
Hi Felipe, Absolutely. Your hint is picked up and worked out as of revision 997. B.t.w. Net::DNS also supports single quoted "words" (as a consequence of the use of shellwords/quotewords) which is not rfc1035 complient... Thanks and regards, -- Willem On Sat 26 Mei 2012 02:15:12, FELIPE wrote: Show quoted text
> RFC 1035 describes being able to encode any octet using \DDD, where DDD > is a 3-digit decimal sequence corresponding to the octet. > > _build_char_str_list() executes Text::ParseWords::shellwords() on each > line of the zone file. shellwords(), though, gets rid of the backslash > in a string like: hello\059 > > A reasonable solution seems to be to use: > quotewords( '\s+', 1, $line ) > > …instead of shellwords. This preserves the \ and allows for full(er) > support of the RFC spec.