aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2012-10-22 12:49:29 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2012-10-22 12:49:29 -0400
commit83acfd9b74600610bab990b6450a7d049c41a74c (patch)
treed656443a828225b9ce515b2322237bb3a8e43ed0 /src
parent099a759c90841acf76c5bbb3610d01fef993d899 (diff)
downloadtextadept-83acfd9b74600610bab990b6450a7d049c41a74c.tar.gz
textadept-83acfd9b74600610bab990b6450a7d049c41a74c.zip
Fix string collation bug in ncurses due to CDK.
CDK would reset locale settings so autocomplete lists would not sort correctly.
Diffstat (limited to 'src')
-rw-r--r--src/textadept.c2
1 files changed, 1 insertions, 1 deletions
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");