tech-pkg archive

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

Re: [PATCH] textproc/icu: drop xlocale.h completely to un-break build on current glibc



> Hi,
> 
> icu build is broken on a system with glibc-2.26 (I think also 2.25) as
> xlocale.h is gone. It was never really intended to be used anyway, so
> here is a patch that just drops it from icu instead of having the
> special case for NetBSD only.
> 
> 
> Alrighty then,
> 
> Thomas

This breaks building on Darwin (a.k.a. macOS):

digitlst.cpp:493:8: error: unknown type name 'locale_t'
static locale_t gCLocale = (locale_t)0;
       ^
digitlst.cpp:493:29: error: use of undeclared identifier 'locale_t'
static locale_t gCLocale = (locale_t)0;
                            ^
digitlst.cpp:502:22: error: use of undeclared identifier 'locale_t'
    if (gCLocale != (locale_t)0) {
                     ^
digitlst.cpp:515:45: error: use of undeclared identifier 'locale_t'
    gCLocale = newlocale(LC_ALL_MASK, "C", (locale_t)0);
                                            ^
digitlst.cpp:515:26: error: use of undeclared identifier 'LC_ALL_MASK'
    gCLocale = newlocale(LC_ALL_MASK, "C", (locale_t)0);

Adam



Home | Main Index | Thread Index | Old Index