slang-users mailing list

[2004 Date Index] [2004 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] slang 2 development snapshot released


On Mon, 4 Oct 2004, John E. Davis wrote:

> A development snapshot of slang 2 is available from
> <ftp://space.mit.edu/pub/davis/slang/2.0-devel/slang-pre2-r0.tar.gz>.

Good news! I've been testing it with dosemu and for the most part it's
fine, including the utf-8 support; I had to make almost no changes no
dosemu, except for the SLutf8_enable() call and SLang_Error.

Looks best to have something like
#if SLANG_VERSION < 20000
#define SLang_get_error() SLang_error
#define SLang_set_error(x) (SLang_Error = (x))
#endif
to be backwards compatible.

Re: SLtt_Use_Blink_For_ACS is nolonger supported.  I think only
DOSEMU uses this.

This still seems to be there but from DOSEMU's point of view it's always
set to 1 now as far as I can see. ie. blinking still works after I do
+#if SLANG_VERSION < 20000
   SLtt_Use_Blink_For_ACS = 1;
+#endif

One small fix: utf8 autodetection using SLutf8_enable(-1); was broken
for me. My man page for setlocale says that what it returns is opaque.
Here I have semicolons as separators instead of commas.

Maybe it's better to use either nl_langinfo(CODESET) or the more portable
change below, which fixes the problem for me?

Bart

--- slcommon.c~	2004-10-04 17:43:51.000000000 +1300
+++ slcommon.c	2004-10-04 20:42:20.000000000 +1300
@@ -62,7 +62,8 @@
    if (mode != -1)
      return (mode != 0);

-   locale = setlocale (LC_ALL, "");
+   setlocale (LC_ALL, "");
+   locale = setlocale (LC_CTYPE, NULL);

    if (((locale == NULL) || (*locale == 0))
        && ((NULL == (locale = getenv ("LC_ALL"))) || (*locale = 0))


[2004 date index] [2004 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]