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:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment (Rich 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>

 #ifndef HAVE_GETCWD

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 Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-07-10 diocles StatusNone => Fixed

    Back to the top

    Powered by Savane 3.6