(possible) wrong UTF8 mangling in tdb / ldb
a.sappia at ngi.it
Wed Feb 21 11:16:47 GMT 2007
i think there is something odd in how ldb checks utf8 fields; I attached
a small patch
to show it to you.
$ export LDB_URL=tdbtest.ldb
$ ./bin/ldbadd /path/to/samba4/source/lib/ldb/tests/test.ldif
Assuming that the patch is applied
./bin/ldbsearch '(cn=*UTF*)' gives you two results
./bin/ldbsearch '(cn=*àèìòù*) gives you just one
Assuming that cn field definition maybe case sensitive or case
insensitive, in any case the two searches must give the same number of
results. Against OpenLdap these searches gives both two results.
* the patch contains also a simple test against it.
GPG Keyserver: keyserver.linux.it
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2661 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070221/000f5b07/utf8_test-0001.bin
More information about the samba-technical