delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/08/03/14:16:06

From: "Tim Van Holder" <tim DOT van DOT holder AT pandora DOT be>
To: <djgpp-workers AT delorie DOT com>
Cc: <ST001906 AT HRZ1 DOT HRZ DOT TU-Darmstadt DOT De>
Subject: Re: gettext port
Date: Fri, 3 Aug 2001 20:16:36 +0200
Message-ID: <CAEGKOHJKAAFPKOCLHDICEDKCGAA.tim.van.holder@pandora.be>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
In-reply-to: <1858-Fri03Aug2001191529+0300-eliz@is.elta.co.il>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> > If I add the following lines to djgpp.env
> > 
> > +LANG=de
> > +LANGUAGE=de,en
> > 
> > then I _do_ get German text (e.g., from `sed --version'), but the
> > umlauted and ess-tzett chars are incorrectly mapped on my screen
> > under CP437.  These chars _are_ available in the upper half of CP437,
> > however.
> 
> Doesn't LANGUAGE=de mean codepage 850 rather than 437?
> 
> I seem to vaguely recall something about you being able to tell
> libiconv which encoding you need, something like LANGUAGE=de.cp437 or
> some such.  Does it work?

It should - the full specification for a language/locale is

  aa_BB.cccc

where aa is the ISO language code, BB is the ISO country code and cccc
is the codepage.  aa can also be suffixed with "@dd", I believe, to
indicate a dialect (hence the no AT nyorsk messages in some packages).

I suppose the easiest would be to edit locale.alias and set LANG to
one of those alias (e.g. the default locale alias has 'german' and
'deutsch' mapped to de_DE.ISO-8859-1.  Change that to de_DE.CP437 and
set LANG to 'german' and you should get correct messages.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019