This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: nl_langinfo (_NL_PAPER_HEIGHT) problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]