www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/03/12:05:35

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Message-ID: <3C348E43.9020704@ujf-grenoble.fr>
Date: Thu, 03 Jan 2002 18:00:51 +0100
From: Maurice Lombardi <Maurice DOT Lombardi AT ujf-grenoble DOT fr>
User-Agent: Mozilla/5.0 (Windows; U; Win98; fr-FR; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1
X-Accept-Language: fr-fr, it, en
MIME-Version: 1.0
To: gpc AT gnu DOT de
CC: djgpp <djgpp AT delorie DOT com>
Subject: Re: GPC 2.1 RC 2 released
References: <200112230652 DOT HAA08217 AT goedel DOT fjf DOT gnu DOT de> <3C304B86 DOT 4060105 AT ujf-grenoble DOT fr> <200201020308 DOT EAA26855 AT goedel DOT fjf DOT gnu DOT de>
Reply-To: djgpp AT delorie DOT com

Frank Heckenbach wrote:

> Maurice Lombardi wrote:
> 
> 
>>DJGPP has only partial support for intl:
>>namely setlocale understands only 'C', 'POSIX' and ''
>>but the translations are allowed by environment variables
>>LANG and LANGUAGE (may be in djgpp.env file)
>>Furthermore it needs -liconv in addition to -lintl
>>because the .mo files are coded as usual in ISO (8859-1 for french),
>>which needs to be recoded to DOS codepage (CP850 foir french).
>>
>>In the zip uploaded I have changed intl.pas and gettextdemo.pas
>>which give a djgpp working example.
>>
> 
> Actually I've just added an autoconf check for -lintl to link it
> automatically from intl.pas when present. Should I do the same for
> -liconv? It will probably not be needed on most platforms, but
> shouldn't hurt, either. 


Would be useful for djgpp at least.

Or should I do it conditionally on
> __OS_DOS__?



No, mingw32 defines __OS_DOS__, presumably for line ends and may be drive letters,

but being windows it uses (nearly) ISO-8859-1.
EMX, when used with rsxwin as extender uses also windows codepage,
(and presumably CP437/CP850 when in plain dos with rsx or emx as extender,
I used it some years ago that way with emtex/texshell)


Do you suppose that gpc/gcc should be configured with --enable-nls ?
I have not done it in the binaries uploaded, and when I tried, it triggers a bug,
djgpp-related, on stage 1: I suppose that nobody has ever tried to compile gcc-2.95.3
natively for djgpp with intl support.

Maurice

-- 
        Maurice Lombardi
Laboratoire de  Spectrometrie Physique,
Universite Joseph Fourier de Grenoble, BP87
38402 Saint Martin d'Heres Cedex     FRANCE
Tel: 33 (0)4 76 51 47 51
Fax: 33 (0)4 76 63 54 95
mailto:Maurice DOT Lombardi AT ujf-grenoble DOT fr

- Raw text -


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