emacs-devel
[Top][All Lists]
Advanced

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

nl_langinfo call for paper dimensions


From: Eli Zaretskii
Subject: nl_langinfo call for paper dimensions
Date: Tue, 17 May 2016 19:24:42 +0300

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...)



reply via email to

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