Jim,

Out of curiosity, I downloaded kitten source, and compiled it into your
test program using openwatcom 1.9:

cd \source\kitten
wcl main.c kitten.c
set LANG=TR
set NLSPATH=\source\kitten

I did not run into any issues.

Regards,
Mark J. Olesen

On Tue, May 8, 2018 at 9:44 AM, Jim Hall <jh...@freedos.org> wrote:

> I'm a bit embarrassed to ask about this, since I wrote the Kitten
> library. But it's been a very long time since I used Kitten, and I'm
> having trouble using Kitten in a simple program.
>
>
> Ercan asked me for help adding Kitten multi-language support to his
> DOS Coreutils. As a test, I wrote this example program:
>
>
> /* test.c */
>
> #include <stdio.h>
> #include "kitten.h"
>
> int
> main(int argc, char **argv)
> {
>    char *s;
>    kittenopen("test");
>    s = kittengets(1, 1, "Hello world");
>    puts(s);
>    kittenclose();
> }
>
>
> And I have a separate TEST.TR file that contains a test string:
>
> 1.1:If you can read this, Kitten lookup worked
>
>
> But when I set LANG=TR and NLSPATH to the location of the TEST.TR
> file, the program only prints "Hello world".
>
> I'm using Kitten-c from
> http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/devel/libs/cats/
>
> I don't get any errors in compiling using OpenWatcom.
>
> Maybe someone who has used Kitten more recently than I have can spot the
> error?
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Freedos-devel mailing list
> Freedos-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-devel
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to