[haiku-commits] Re: haiku: hrev43933 - src/system/libroot/add-ons/icu

  • From: John Scipione <jscipione@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 1 Apr 2012 18:28:28 -0400

On Sun, Apr 1, 2012 at 4:16 PM, Oliver Tappe <zooey@xxxxxxxxxxxxxxx> wrote:
> If you were using some of the POSIX locale functions (strxfrm() and/or
> strcoll() come to mind), this could be the case, yes.
> If you were using stuff from the Locale Kit, then this fix won't help, as
> it just relates to the internal, ICU-based backend used by libroot to
> implement the POSIX locale.

I am using BCollator::Compare() to do the comparison. I can't use the
POSIX locale-aware compare function because I need to use a special
Collation mode for doing localized natural sorting of numbers. 0, 1,
2, 3… 10, 11, 12… etc.

I just checked and it still crashes in the _SetStrength() method,
probably due to a locking issue, at least the docs warn that there are
issues with _SetStrength() if you don't lock properly.

Oh well for now. Thanks for the help.
John Scipione

Other related posts: