From 83acfd9b74600610bab990b6450a7d049c41a74c Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 22 Oct 2012 12:49:29 -0400 Subject: Fix string collation bug in ncurses due to CDK. CDK would reset locale settings so autocomplete lists would not sort correctly. --- src/textadept.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/textadept.c b/src/textadept.c index 851bf3d1..4d430c8a 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -2281,7 +2281,7 @@ int main(int argc, char **argv) { #endif #endif - setlocale(LC_NUMERIC, "C"); + setlocale(LC_COLLATE, "C"), setlocale(LC_NUMERIC, "C"); if (lua = luaL_newstate(), !lL_init(lua, argc, argv, FALSE)) return 1; new_window(); lL_dofile(lua, "init.lua"); -- cgit v1.2.3