use strcoll for lists!
- From: Gediminas Paulauskas <menesis delfi lt>
- To: gnome-i18n gnome org
- Subject: use strcoll for lists!
- Date: Sun, 14 Jan 2001 03:35:36 +0200
kažkada, berods Sk, 2001-01-14 03:11+0200, Gediminas Paulauskas rašė:
> > I believe you could use "qsort" for sorting and "strcoll" for comparison.
> > Once Unicode comes into place, you will need to replace strcoll with the
> > Unicode counterpart.
> >
> > Attached is a simple example of the above.
>
> simple... although too complicated. actually there was only one line:
> l = g_list_sort( l, (GCompareFunc) strcmp );
you really meant strcoll, not strcmp. A good point! Other apps possibly also
should be fixed to use strcoll for lists of translated or user-entered
lists. I have done this for GnomeICU and gtranslator already.
--
Gediminas Paulauskas ··· http://03bar.ktu.lt/~menesis/ ··· ICQ 24859336
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]