bugGNU Enscript - Bugs: bug #31607, enscript- fails to compile...


bug #31607: enscript- fails to compile with --disable-nls

Submitted by:  None
Submitted on:  Tue 09 Nov 2010 07:11:26 PM UTC  
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Tue 09 Nov 2010 08:11:07 PM UTC, comment #1:

solaris may include libintl.h within locale.h, so a better one is:

--- src/gsint.h__dist Wed Jun 2 00:17:25 2010
+++ src/gsint.h Tue Nov 9 21:02:54 2010
@@ -103,15 +103,18 @@
#include "dummypwd.h"

+#include <locale.h>
#include <libintl.h>
#define _(String) gettext (String)
#define _(String) String
+#ifndef ngettext
+#define ngettext(String1,String2,Var) Var == 1 ? String1 : String2
-#include <locale.h>


Tue 09 Nov 2010 07:11:26 PM UTC, original submission:

ngettext is used in src/main.c so some replacement has to be defined when configure was run with --disable-nls

      • src/gsint.h__dist Wed Jun 02 00:17:25 MDT 2010

--- src/gsint.h Tue Nov 09 18:24:05 MET 2010

      • 106,114 ****

--- 106,115 ----
#include <libintl.h>
#define _(String) gettext (String)
#define _(String) String
+ #define ngettext(String1,String2,Var) Var == 1 ? String1 : String2

#include <locale.h>



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by diocles (Updated the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 10 Jul 2011 04:05:14 PM UTCdioclesStatusNone=>Fixed

    Back to the top

    Powered by Savane 3.1-cleanup