[389-devel] Please review: [389 Project] #54: locale "nl" not supported by collation plugin

Noriko Hosoi nhosoi at redhat.com
Wed Oct 2 18:07:21 UTC 2013


https://fedorahosted.org/389/ticket/54

https://fedorahosted.org/389/attachment/ticket/54/0001-Ticket-54-locale-nl-not-supported-by-collation-plugi.patch

  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.



More information about the 389-devel mailing list