From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: nl_langinfo call for paper dimensions Date: Tue, 17 May 2016 09:29:29 -0700 Organization: UCLA Computer Science Department Message-ID: <29d13326-09c6-b3db-de12-ff5d4d3bdc56@cs.ucla.edu> References: <83bn444ppx.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1463502602 15750 80.91.229.3 (17 May 2016 16:30:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 May 2016 16:30:02 +0000 (UTC) To: Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 17 18:29:50 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b2hsU-0000Km-AS for ged-emacs-devel@m.gmane.org; Tue, 17 May 2016 18:29:50 +0200 Original-Received: from localhost ([::1]:51420 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2hsT-0002bM-Hc for ged-emacs-devel@m.gmane.org; Tue, 17 May 2016 12:29:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35444) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2hsH-0002ab-Fs for emacs-devel@gnu.org; Tue, 17 May 2016 12:29:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2hsG-0001Mh-HE for emacs-devel@gnu.org; Tue, 17 May 2016 12:29:37 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:46987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2hsB-0001Lw-FB; Tue, 17 May 2016 12:29:31 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id BC68916130A; Tue, 17 May 2016 09:29:30 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id gjJQXnAlFV0O; Tue, 17 May 2016 09:29:30 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 0F5BA16130B; Tue, 17 May 2016 09:29:30 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id fDcn2NRHeMOa; Tue, 17 May 2016 09:29:29 -0700 (PDT) Original-Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id EB47816130A; Tue, 17 May 2016 09:29:29 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 In-Reply-To: <83bn444ppx.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:203879 Archived-At: 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.