summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/wcscoll.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r317034:bapt2017-05-011-58/+62
| | | | | | | | | | | | | | | | | Fix strcoll_l disagreeing with strxfrm by reworking the forward order case in wcscoll_l(). Illumos fixed this while grabbing back our patches: https://www.illumos.org/rb/r/402/ This does not 100% fix what postgresql folks reported as there is still a remaining issue: https://www.illumos.org/issues/7962, it improves the situation The initial issue was reported in postgresql mailing lists: https://www.postgresql.org/message-id/flat/111D0E27-A8F3-4A84-A4E0-B0FB703863DF@s24.com#111D0E27-A8F3-4A84-A4E0-B0FB703863DF@s24.com Submitted by: Yuri Pankov <yuri.pankov@nexenta.com> Obtained from: Illumos
* libc: spelling fixes.pfg2016-04-301-1/+1
| | | | Mostly on comments.
* collate: Fix expansion substitions (broken upstream too)bapt2015-10-231-40/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Through testing, the user noted that some Cyrillic characters were not sorting correctly, and this was confirmed. After extensive testing and review, the localedef tool was eliminated as the culprit. The sustitutions were encoded correctly in LC_COLLATE. The error was mainly in wcscoll where character expansions were mishandled. The main directive pass routines had to be written to go back for a new collation value when the "state" variable was set. Before pointers were being advanced, the second lookup was gettting applied to the wrong character, etc. The "eat expansion codes" section on collate.c also had a bug. Later own, the "state" variable logic was changed to only set if next code was greater than zero (rather than >= 0). Some additional cleanups got captured from previous work: 1) The previous commit moved the binary search comment from the correct location to a wrong location because it's wrong upstream in Illumos. The comment has little value so I just removed it. 2) Don't check if pointers are null before freeing, this is redundant as free() handles null pointers. 3) The two binary search trees were standardized wrt initialization 4) On the binary search trees, a negative "high" exits rather than checking the table count again. Submitted by: marino Obtained from: DragonflyBSD
* Update wcscoll forgotten in previous patchbapt2015-08-091-51/+143
|
* Implement xlocale APIs from Darwin, mainly for use by libc++. This adds atheraven2011-11-201-3/+17
| | | | | | | | | | | | load of _l suffixed versions of various standard library functions that use the global locale, making them take an explicit locale parameter. Also adds support for per-thread locales. This work was funded by the FreeBSD Foundation. Please test any code you have that uses the C standard locale functions! Reviewed by: das (gdtoa changes) Approved by: dim (mentor)
* Prepare to handle state-dependent encodings. This mainly involves nottjr2004-04-071-2/+6
| | | | | taking shortcuts when it comes to storing and passing around conversion states.
* Pass NULL instead of a pointer to a zeroed mbstate_t object.tjr2003-11-051-5/+2
|
* Add a placeholder implementation of wcscoll() and wcsxfrm() which givestjr2002-10-041-0/+97
locale-sensitive collation only in single-byte locales, and just does binary comparison for the others with extended character sets.
OpenPOWER on IntegriCloud