Re: [netmod] yang-types-04 bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [netmod] yang-types-04 bug



Juergen Schoenwaelder píše v Po 26. 10. 2009 v 00:10 +0100:
> On Sun, Oct 25, 2009 at 08:21:09PM +0100, Andy Bierman wrote:
>  
> > I was trying to compile this module with the version of
> > yangdump that is about to be released, and if complained
> > because the 'date-and-time' description-stmt is a
> > single-quoted string, and it contains 2 single quotes (device's).
> > 
> > YANG has no way to escape those quotes?  (I think not.)
> 
> Sorry for not catching this before posting the ID. I will fix this
> problem in the next revision. I conclude for myself that using single
> quote strings (that do not allow escape sequences) for textual
> arguments is not a good YANG usage pattern.

Hmm, where does the draft say that an unescaped apostrophe
(single-quote) is illegal in a double-quoted string? It only says:

   A single quote character cannot occur in a single
   quoted string, even when preceded by a backslash.

IMO "'" represents a legal YANG string consisting of one single-quote
character.

Lada

> 
> /ks
> 
-- 
Ladislav Lhotka, CESNET
PGP Key ID: E74E8C0C


Note: Messages sent to this list are the opinions of the senders and do not imply endorsement by the IETF.