[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: ITS#1998, zero-length attr vals

> -----Original Message-----
> From: Kurt D. Zeilenga [mailto:Kurt@OpenLDAP.org]

> BTW, we need to do some work in the string preparation
> area.  One approach is to do away with UTF8StringNormalize
> and put all the string preparation (excepting transcoding)
> into UTF8bvnormalize.  Presently we're removing extra
> spaces (U+0020) before we've done mapping... which means
> we might still have extra spaces.

I don't think that's an issue. As the comment in UTF8StringNormalize
states, all whitespace is ASCII; there are no 8-bit or larger
characters that fall into the "Space" class, and longer encodings
of ASCII characters are illegal. So, the result of the decomposition
and mapping should not result in any more spaces than the original
string contained.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support