Bug description: In the recent version of ICU, some locales do not
have its specific collator, but are included in the default (root)
locale. "nl", "en", and "fr" are in the class. ICU API ucol_open
takes the locale string and returns the collator with the status.
If the locale has no dedicated collator and the root collator is
picked up, status U_USING_DEFAULT_WARNING is returned, which is not
an error. But collation_indexer_create (collate.c) treats it as an
error and stops the collation.
Fix description: As ICU doc suggests, error checking for ucol_open
is replaced with "(U_SUCCESS(err)", by which the status U_USING_
DEFAULT_WARNING is correctly handled.
1.3.1.x doesn't seem to work properly on Debian/Ubuntu, fact which I
didn't notice until now. At least stop-dirsrv is buggy (maybe others)
because it uses bashisms, changing it to use #!/bin/bash fixed that
script. Note that /bin/sh on Debian et al is dash, not bash.
7a736adc6876832f also hardcodes more paths like /usr/lib64, Debian uses
multiarch paths now so things are in /usr/<gnu-triplet>. This is also
the cause for bug #538. I don't know autotools well enough to properly
fix these myself..
anyway, the setup script fails too:
Could not import LDIF file '/tmp/ldifbR5qXU.ldif'. Error: 65280.
Output: ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
Failed to add task entry "cn=import_2013_9_28_8_38_1, cn=import,
cn=tasks, cn=config" error (255)
1.3.0.x is the last version where the setup script(s) worked flawlessly