Mail Archives: djgpp-workers/2001/08/02/17:39:20
Date: Thu, 02 Aug 2001 17:55:36 -0300
From: salvador <salvador AT inti DOT gov DOT ar>
> Eli Zaretskii wrote:
>
> > On Wed, 1 Aug 2001, salvador wrote:
> > > In the past I shipped Linux version of my .mo files in ISO-8859-1 and DOS
> > > version in 850. So the installed translations match with the system.
> > > No translation needed, so no memory nor speed overhead was introduced.
> >
> > But the downside is that you need to produce a separate message
> > catalogue for each possible codepage. For example, with Cyrillic
> > languages, there are half a dozen possible encodings, maybe more.
>
> I understand it, but in any case you need some user setup. How the program
> will know to what code page to translate? DOS have a call for it, but it could
> return a wrong value and in Linux things are even more complicated.
The possibility of a DOS call use has been descarted due some difficulties.
DOS sometimes lies about the codepage in use.
The user must _always_ set the lang environment variable in djgpp.env.
This variable is inspected by gettext and libiconv and the the appropiate codepage
is extracted from from the file: charset.alias located in DJDIR/lib.
If LANG is not set, then it defaults to `C' this ia ascii.
Regards,
Guerrero, Juan M.
- Raw text -