libuv/src
Ben Noordhuis e7bc260c42 unix: don't use alphasort in uv_fs_scandir()
alphasort() uses strcoll() in some libcs (notably glibc and musl) which
makes it locale-sensitive.

Replace it with a simple strcmp-based lexicographic comparison for
consistent behavior across platforms.

Remove the special-casing for OpenBSD.  It has been exporting function
prototypes conforming to POSIX.1-2008 since OpenBSD 5.3 and that was
released more than three years ago.

OS X 10.7 is now the only special case left.

Fixes: https://github.com/libuv/libuv/issues/1045
PR-URL: https://github.com/libuv/libuv/pull/1046
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
2016-09-12 15:50:58 +02:00
..
unix unix: don't use alphasort in uv_fs_scandir() 2016-09-12 15:50:58 +02:00
win win: add disk read/write count to uv_getrusage 2016-08-30 16:21:44 -04:00
fs-poll.c unix, win: count null byte on UV_ENOBUFS 2016-03-03 09:23:10 +01:00
heap-inl.h heap: fix heap_remove() 2014-05-23 20:04:42 +04:00
inet.c win: use the MSVC provided snprintf where possible 2015-09-29 09:01:33 +02:00
queue.h unix: use QUEUE_MOVE when iterating over lists 2015-10-08 21:47:43 +02:00
threadpool.c src: replace QUEUE_SPLIT with QUEUE_MOVE 2015-10-08 21:46:48 +02:00
uv-common.c unix: preserve loop->data across loop init/done 2016-07-30 10:49:19 +02:00
uv-common.h win: use the MSVC provided snprintf where possible 2015-09-29 09:01:33 +02:00
version.c core: add UV_VERSION_HEX macro 2015-06-29 23:08:41 +02:00