all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: nl_langinfo call for paper dimensions
Date: Tue, 17 May 2016 09:29:29 -0700	[thread overview]
Message-ID: <29d13326-09c6-b3db-de12-ff5d4d3bdc56@cs.ucla.edu> (raw)
In-Reply-To: <83bn444ppx.fsf@gnu.org>

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	other threads:[~2016-05-17 16:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-17 16:24 nl_langinfo call for paper dimensions Eli Zaretskii
2016-05-17 16:29 ` Paul Eggert [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=29d13326-09c6-b3db-de12-ff5d4d3bdc56@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.