diff --git a/ChangeLog b/ChangeLog index 2ccb2b47f92fbc3f7e43895c8a8ea8b49e356986..8f9d359946a220949c6190485be65ec33d4dd41d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -43,6 +43,9 @@ CVS code - edit_scroll(). (DLR, found by Daniel Richard G.) - Rename the DISABLE_ROOTWRAP #define to DISABLE_ROOTWRAPPING. (DLR) + - When using slang 2.x, call SLutf8_enable() with an argument of + 1 instead of TRUE, as that's the proper way to force its UTF-8 + support on. Changes to main() and configure.ac. (DLR) - browser.c: do_browser() - Refactor the mouse support, modeling it after do_mouse() for diff --git a/configure.ac b/configure.ac index 972f064e8e1ec09ff64d1ab807f364d85038542b..1f0c5f0cf8b10e1504b22ec2a21368dce69c2944 100644 --- a/configure.ac +++ b/configure.ac @@ -210,7 +210,7 @@ AC_ARG_WITH(slang, #include <slcurses.h> int main(void) { - SLutf8_enable(TRUE); + SLutf8_enable(1); return 0; }], [AC_MSG_RESULT(yes) @@ -236,7 +236,7 @@ int main(void) #include <slcurses.h> int main(void) { - SLutf8_enable(TRUE); + SLutf8_enable(1); return 0; }], [AC_MSG_RESULT(yes) @@ -257,7 +257,7 @@ int main(void) #include <slcurses.h> int main(void) { - SLutf8_enable(TRUE); + SLutf8_enable(1); return 0; }], [AC_MSG_RESULT(yes) diff --git a/src/nano.c b/src/nano.c index 0b4b0cfe3ac222c55c2c8c99cfa9c436ed0f59aa..3ca9632a6ef7daa5a1a8f1878baa704de15a2e7a 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1728,7 +1728,7 @@ int main(int argc, char **argv) if (locale != NULL && (strcasestr(locale, "UTF8") != NULL || strcasestr(locale, "UTF-8") != NULL)) { #ifdef USE_SLANG - SLutf8_enable(TRUE); + SLutf8_enable(1); #endif utf8_init(); }