(memcoll, keycompare, compare): Handle NUL
authorJim Meyering <jim@meyering.net>
Thu, 20 May 1999 16:09:12 +0000 (16:09 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 20 May 1999 16:09:12 +0000 (16:09 +0000)
commit9a27ea2eb272cfcc1a5146dac64ba700155e9d3a
tree2cdc68123045905f4bc212c54d4c5a694bb4c5ea
parent61b2bceab7e154b1fb14c2f6a3e6992c3a1049e3
(memcoll, keycompare, compare): Handle NUL
characters properly when comparing with LC_COLLATE semantics.
(NLS_MEMCMP): Remove.
(memcoll): Renamed from strncoll.
Take separate lengths for each string.
This function is now invoked only when need_locale.
(keycompare): Don't copy strings when ignore and translate
are both NULL.
src/sort.c