nl_langinfo (_NL_PAPER_HEIGHT) problem
Andreas Jaeger
aj@suse.de
Tue Apr 24 06:53:00 GMT 2001
Jakub Jelinek <jakub@redhat.com> writes:
> On Tue, Apr 24, 2001 at 03:24:20PM +0200, Andreas Jaeger wrote:
> >
> > The output of the appended program is:
> > gee:/tmp:[1]$ gcc -Wall -g t.c
> > gee:/tmp:[0]$ ./a.out
> > 297
> > Segmentation fault
> >
> > According to the documentation and to Unix98, nl_langinfo returns a
> > string - but it seems that glibc returns in this case an integer?
>
> AFAIK, Unix98 does not speak about _NL_PAPER_HEIGHT, it is glibc extension
> and glibc can do whatever it wants with it.
Unix98 mentions that the function returns a string - and that's what
we're violating.
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Libc-alpha
mailing list