|
From: Ralf Q. <fre...@gm...> - 2018-05-08 20:10:34
|
On 5/8/2018 8:44 AM, Jim Hall 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?
Have never used the library myself but the sample looks simple enough
that it should be easy to do a step by step trace through it...
Ralf
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
|