Commit 4ac129c4 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

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


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3799 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 7 additions and 4 deletions
+7 -4
...@@ -43,6 +43,9 @@ CVS code - ...@@ -43,6 +43,9 @@ CVS code -
edit_scroll(). (DLR, found by Daniel Richard G.) edit_scroll(). (DLR, found by Daniel Richard G.)
- Rename the DISABLE_ROOTWRAP #define to DISABLE_ROOTWRAPPING. - Rename the DISABLE_ROOTWRAP #define to DISABLE_ROOTWRAPPING.
(DLR) (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: - browser.c:
do_browser() do_browser()
- Refactor the mouse support, modeling it after do_mouse() for - Refactor the mouse support, modeling it after do_mouse() for
......
...@@ -210,7 +210,7 @@ AC_ARG_WITH(slang, ...@@ -210,7 +210,7 @@ AC_ARG_WITH(slang,
#include <slcurses.h> #include <slcurses.h>
int main(void) int main(void)
{ {
SLutf8_enable(TRUE); SLutf8_enable(1);
return 0; return 0;
}], }],
[AC_MSG_RESULT(yes) [AC_MSG_RESULT(yes)
...@@ -236,7 +236,7 @@ int main(void) ...@@ -236,7 +236,7 @@ int main(void)
#include <slcurses.h> #include <slcurses.h>
int main(void) int main(void)
{ {
SLutf8_enable(TRUE); SLutf8_enable(1);
return 0; return 0;
}], }],
[AC_MSG_RESULT(yes) [AC_MSG_RESULT(yes)
...@@ -257,7 +257,7 @@ int main(void) ...@@ -257,7 +257,7 @@ int main(void)
#include <slcurses.h> #include <slcurses.h>
int main(void) int main(void)
{ {
SLutf8_enable(TRUE); SLutf8_enable(1);
return 0; return 0;
}], }],
[AC_MSG_RESULT(yes) [AC_MSG_RESULT(yes)
......
...@@ -1728,7 +1728,7 @@ int main(int argc, char **argv) ...@@ -1728,7 +1728,7 @@ int main(int argc, char **argv)
if (locale != NULL && (strcasestr(locale, "UTF8") != NULL || if (locale != NULL && (strcasestr(locale, "UTF8") != NULL ||
strcasestr(locale, "UTF-8") != NULL)) { strcasestr(locale, "UTF-8") != NULL)) {
#ifdef USE_SLANG #ifdef USE_SLANG
SLutf8_enable(TRUE); SLutf8_enable(1);
#endif #endif
utf8_init(); utf8_init();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment