This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: nl_langinfo (_NL_PAPER_HEIGHT) problem
- To: drepper at cygnus dot com (Ulrich Drepper)
- Subject: Re: nl_langinfo (_NL_PAPER_HEIGHT) problem
- From: Andreas Jaeger <aj at suse dot de>
- Date: 24 Apr 2001 15:52:24 +0200
- Cc: libc-alpha at sources dot redhat dot com, Werner Fink <werner at suse dot de>
- References: <hobspm1ldn.fsf@gee.suse.de> <m3n196o1xf.fsf@otr.mynet.cygnus.com>
Ulrich Drepper <drepper@redhat.com> writes:
> Andreas Jaeger <aj@suse.de> writes:
>
> > According to the documentation and to Unix98, nl_langinfo returns a
> > string - but it seems that glibc returns in this case an integer?
> >
> > This looks broken to me.
>
> No, this is how I've implemented this. There are other places where a
> pointer has to be converted to an integer.
The austin draft reads: "The nl_langinfo function shall return a
pointer to a string containing information..."
And the glibc manual and headers also don't explain that nl_langinfo
can return anything besides a string. If we want to stay with the
current implementation, we should add better documentation for it.
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj