delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/06/07:51:11

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: Thomas DOT Wolff AT icn DOT siemens DOT de
Date: Thu, 6 Jul 2000 13:50:03 +0200 (MEST)
Message-Id: <200007061150.NAA12116@mail.bln1.siemens.de>
Subject: Re: include incompatibilities
To: "J. J. Farrell" <jjf AT bcs DOT org DOT uk>
Cc: cygwin AT sourceware DOT cygnus DOT com

J. J. Farrell wrote:
: > From: towo AT computer DOT org
: > 
: > ...
: > Also, there are some reasons I did not use strerror().
: > One is, strerror may depend on setlocale but setlocale is not available 
: > on older systems.
: 
: I don't understand what you mean by this. If a hosted environment
: conforms to C89 then it has strerror(). There is no dependency on
: other routines.
This locale stuff is all still very confusing and highly non-portable.
On Sun, the man pages of strerror and perror mention
> SEE ALSO
>      gettext(3I), perror(3C), setlocale(3C)
although I couldn't manage to actually get any effect on strerror with 
setlocale.
On Linux, strerror does depend on the environment variable LANG, so it's 
not a constant mapping function as some applications might desire, 
especially if they add their own, non-localized, text output. I don't 
know if there is a library function corresponding to this dependency, 
I had thought it would have to be setlocale.

Thomas Wolff

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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