[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nl_langinfo call for paper dimensions

From: Paul Eggert
Subject: Re: nl_langinfo call for paper dimensions
Date: Tue, 17 May 2016 09:29:29 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0

On 05/17/2016 09:24 AM, Eli Zaretskii wrote:
locale-info in fns.c has this fragment:

   /* LC_PAPER stuff isn't defined as accessible in glibc as of 2.3.1,
      but is in the locale files.  This could be used by ps-print.  */
   #ifdef PAPER_WIDTH
     else if (EQ (item, Qpaper))
       return list2i (nl_langinfo (PAPER_WIDTH), nl_langinfo (PAPER_HEIGHT));
   #endif       /* PAPER_WIDTH */

This seems wrong, since nl_langinfo returns a 'char *' pointer, not an
integer.  Right?  (I don't think there's any platform which actually
supports PAPER_WIDTH and PAPER_HEIGHT, but still...)

Yes, the code is bogus and never worked. Simplest would be to remove the #ifdef and everything inside it, along with the DEFSYM of Qpaper.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]