From: Bruno Haible MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14971.212.679293.634887@honolulu.ilog.fr> Date: Fri, 2 Feb 2001 19:47:48 +0100 (CET) To: Eli Zaretskii Cc: djgpp-workers AT delorie DOT com, "Juan Manuel Guerrero" Subject: Re: gettext pretest available In-Reply-To: <8296-Fri02Feb2001185506+0200-eliz@is.elta.co.il> References: <14970 DOT 45885 DOT 260391 DOT 572165 AT honolulu DOT ilog DOT fr> <8296-Fri02Feb2001185506+0200-eliz AT is DOT elta DOT co DOT il> X-Mailer: VM 6.72 under 21.1 (patch 8) "Bryce Canyon" XEmacs Lucid 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 Precedence: bulk Eli Zaretskii writes: > But this is actually the tip of an iceberg: DOS and Windows encodings > of 8-bit European and ISO-8859 character sets are different from those > used by Unix and GNU/Linux systems. > > So, apart of the issue of porting the code, there's a separate and > not less important issue of converting the *.po and *.gmo files to the > encoding used by the target OS. It would be nice if this issue could > be solved as part of the Gettext package as well. This gettext pretest has the ability to do character set conversion on the fly, e.g. from ISO-8859-1 to CP437. All you need to do to get this working is 1) Adapt the intl/localcharset.c and intl/config.charset files for the DJGPP platform. 2) Install libiconv (http://clisp.cons.org/~haible/packages-libiconv.html) prior to gettext. Converting the .po or .gmo files is not the solution, because users normally don't have the msgfmt/msgunfmt programs available at runtime. > Finally, there's a nuisance due to the fact that the DJGPP library has > an incompatible function whose name is also gettext. Juan found a > solution for this as well, and I will ask him to describe it as part > of his response. Yes, please describe. Bruno