directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Seelmann <>
Subject openldap.g schema parser prefixes double quotes with a backslash
Date Sun, 01 Jun 2008 09:11:07 GMT

In testAttributeTypeParseWithDescQuotes() of OpenLdapSchemaParserTest
( the DESC element contains two double quotes:

  ... DESC 'RFC2256: \"knowledge\" information'\n" ...

The parser in openldap.g adds a backslash before each double quote and
this is also expected in the test:

  assertEquals( "RFC2256: \\\"knowledge\\\" information",
type.getDescription() );

I just wonder what's the reason for adding a backslash?


View raw message