Add support for LC_COLLATE locale.
authorJim Meyering <jim@meyering.net>
Sun, 4 Jul 1999 10:28:08 +0000 (10:28 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 4 Jul 1999 10:28:08 +0000 (10:28 +0000)
commit115372366e5c36d3afe9c07f8d1dd430de821716
treecd5552d7ad74be593c12db80db3e9c9c32e40cda
parentd67adf2b8c9466e91dda5f59ae0cdcbe502977a8
Add support for LC_COLLATE locale.
Include hard-locale.h, linebuffer.h, memcoll.h.
(struct line): New member `buf', replacing `beg' and `lim'.
All uses changed.
(hard_LC_COLLATE): New var.
(main): Initialize it.
(get_line): Use readline to read the line,
instead of doing it by hand.
That way, we get a buffer that we can pass to memcoll.
(keycmp): Use memcoll to compare lines if hard_LC_COLLATE is nonzero.
src/join.c