bugGNU gettext - Bugs: bug #50595, libintl.h: declare newlocale when...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #50595: libintl.h: declare newlocale when requested by feature macros only

Submitted by:  Michael Haubenwallner <haubi>
Submitted on:  Mon 20 Mar 2017 01:53:15 PM UTC  
 
Category: Programmer interfaceSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Bruno Haible <haible>
Open/Closed: Closed

Mon 20 Mar 2017 09:39:57 PM UTC, comment #1:

Thanks for the report. Fixed in git, through
http://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commitdiff;h=41e5199f0e4a3e9d518d6f95a3efdfae5e2c7913

Bruno Haible <haible>
Project AdministratorIn charge of this item.
Mon 20 Mar 2017 01:53:15 PM UTC, original submission:

Cygwin does provide newlocale function, thus @HAVE_NEWLOCALE@ = 1.

But <locale.h> does declare locale_t only if selected by feature macros, causing this compiler error when using libintl.h with -std=c90:

<code>
$ x86_64-pc-cygwin-gcc -std=c90 -O2 -pipe -O2 -pipe -I./subversion/include -I./subversion -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/serf-1 -c subversion/libsvn_delta/compat.c -DDLL_EXPORT -DPIC -o subversion/libsvn_delta/.libs/compat.o
In file included from ./subversion/svn_private_config.h:255:0,
from subversion/libsvn_delta/compat.c:36:
/usr/include/libintl.h:440:8: error: unknown type name 'locale_t'
extern locale_t newlocale (int, const char *, locale_t);
^
/usr/include/libintl.h:440:47: error: unknown type name 'locale_t'
extern locale_t newlocale (int, const char *, locale_t);
^
</code>

Michael Haubenwallner <haubi>

 

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by haible (Posted a comment)
  • -unavailable- added by haubi (Submitted 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):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 20 Mar 2017 09:39:57 PM UTChaibleCategoryC=>Programmer interface
      StatusNone=>Fixed
      Assigned toNone=>haible
      Open/ClosedOpen=>Closed
    Mon 20 Mar 2017 01:53:15 PM UTChaubiAttached File-=>Added 0001-libintl.h-expose-newlocale-when-requested-only.patch, #40037

    Back to the top


    Powered by Savane 3.1-cleanup1