On Sat, Aug 23, 2008 at 8:40 PM, Gregory Pietsch <[EMAIL PROTECTED]> wrote: > FreeDOS maniacs, > > I was playing around with the implementation of edlin as it has been > over a year since 2.10c, and was wondering if I could get rid of the > ancient kitten.c and kitten.h files in the implementation. > > I am currently trying to tweak the catgets.c implementation so that it > will be more Posix-like: relying on the environment variables LANG and > NLSPATH for the information needed to find message catalogs. > > I'm trying to make the edlin implementation be at the forefront of > innovation for FreeDOS. At the same time, Jim Hall might complain if I > killed kitten by replacing it with something better (the files > nl_types.h and catgets.c in edlin implement the catgets functionality) > and I don't want to hurt his feelings. > > What does everyone think about this? > > Gregory >
I doubt Jim would mind very much. :-) He says on his page <http://www.freedos.org/jhall/> that Kitten is not currently maintained, so he would probably be happy for someone to take this on and provide some updates. But that's just a guess - you might try emailing him. ;-) However, what version of Kitten or Cats do you have? (Kitten replaced Cats.) Was it a locally-written version for Edlin? (I've never looked at Edlin's i18n code.) You mentioned catgets.c, so I think Edlin must have an old version of Cats, although Cats didn't have its own nl_types.h. Kitten already uses LANG and NLSPATH to find the catalog files. The latest version of Kitten is "kitten-c"'. <http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/devel/libs/cats/kitten-c.zip> Like Catgets, when looking for a catalog, Kitten will scan the paths provided in NLSPATH to look for the catalog file. In Kitten, this is a very simple ruleset: For each path in NLSPATH { 1. look for: NLSPATH\LANG\cat 2. look for: NLSPATH\cat.LANG } -jh ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Freedos-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freedos-devel
