[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: IBM z/OS compatibility issues - per-thread locale functions
From: |
Daniel Richard G. |
Subject: |
Re: IBM z/OS compatibility issues - per-thread locale functions |
Date: |
Mon, 18 Nov 2019 13:49:58 -0500 |
User-agent: |
Cyrus-JMAP/3.1.7-562-gfd0633a-fmstable-20191114v1 |
On Mon, 2019 Nov 18 06:41-05:00, Bruno Haible wrote:
> Hi Daniel,
>
> > Locale-related configure findings:
> >
> > bash-2.03$ grep locale configure.out | fgrep -v '(cached)'
> > checking for xlocale.h... no
> > checking for duplocale... yes
[...]
> > checking whether wcrtomb works in the C locale... yes
> > checking for a turkish Unicode locale... none
>
> I don't understand this.
At least I'm not alone :]
> Yes, I need more details here.
>
> 1) Please make sure you build in a fresh directory ('rm -rf testdir'
> before you generate a new testdir), and have no global config
> cache.
Because I've been running the test suite repeatedly, I've scripted most
of the process to eliminate casual errors. As a matter of course it
begins with an empty build directory.
I've hardly ever used config caches, but in any event...
bash-2.03$ env | grep CONFIG
(no output)
> 2) Run configure with option '-C'.
I've added this, and re-run the build. The following information is from
that new run. (Same Git commit.)
> 3) Please provide all three of the following:
> - grep locale configure.out
Including the "(cached)" lines, ah? It's a bit more verbiage:
bash-2.03$ grep locale configure.out
checking for xlocale.h... no
checking for duplocale... yes
checking for uselocale... yes
checking for newlocale... yes
checking for freelocale... yes
checking for a traditional french locale... fr_FR
checking whether locale.h defines locale_t... no
checking whether locale.h conforms to POSIX:2001... yes
checking whether uselocale works... no
checking for a traditional japanese locale... none
checking for a transitional chinese locale... none
checking for a french Unicode locale... none
checking whether the C locale is free of encoding errors... yes
checking whether wcwidth works reasonably in UTF-8 locales... yes
checking whether duplocale(LC_GLOBAL_LOCALE) works... no
checking whether locale.h conforms to POSIX:2001... (cached) yes
checking whether the C locale is free of encoding errors... (cached) yes
checking whether setlocale supports the C locale... yes
checking whether wcrtomb works in the C locale... yes
checking whether wcwidth works reasonably in UTF-8 locales... (cached) yes
checking for a traditional french locale... (cached) fr_FR
checking for a french Unicode locale... (cached) none
checking for a traditional french locale... (cached) fr_FR
checking for a turkish Unicode locale... none
checking whether uselocale works... (cached) no
checking for a traditional french locale... (cached) fr_FR
checking for a french Unicode locale... (cached) none
checking for a traditional japanese locale... (cached) none
checking for a transitional chinese locale... (cached) none
checking for a french Unicode locale... (cached) none
checking for a traditional french locale... (cached) fr_FR
checking for a french Unicode locale... (cached) none
checking for a traditional japanese locale... (cached) none
checking for a transitional chinese locale... (cached) none
checking for a traditional french locale... (cached) fr_FR
checking for a french Unicode locale... (cached) none
checking for a traditional japanese locale... (cached) none
checking for a transitional chinese locale... (cached) none
checking for a traditional french locale... (cached) fr_FR
checking for a french Unicode locale... (cached) none
checking for a traditional french locale... (cached) fr_FR
checking for a french Unicode locale... (cached) none
checking for a traditional japanese locale... (cached) none
checking for a transitional chinese locale... (cached) none
checking for a traditional french locale... (cached) fr_FR
checking for a french Unicode locale... (cached) none
checking for a traditional french locale... (cached) fr_FR
checking for a french Unicode locale... (cached) none
checking for a traditional french locale... (cached) fr_FR
checking for a french Unicode locale... (cached) none
checking for a traditional japanese locale... (cached) none
checking for a transitional chinese locale... (cached) none
checking for a traditional french locale... (cached) fr_FR
checking for a french Unicode locale... (cached) none
checking for a traditional japanese locale... (cached) none
checking for a transitional chinese locale... (cached) none
checking for a traditional french locale... (cached) fr_FR
checking for a french Unicode locale... (cached) none
checking for a traditional japanese locale... (cached) none
checking for a transitional chinese locale... (cached) none
> - grep -i locale config.cache
bash-2.03$ grep -i locale config.cache
ac_cv_func_duplocale=${ac_cv_func_duplocale="yes"}
ac_cv_func_freelocale=${ac_cv_func_freelocale="yes"}
ac_cv_func_newlocale=${ac_cv_func_newlocale="yes"}
ac_cv_func_uselocale=${ac_cv_func_uselocale="yes"}
ac_cv_header_xlocale_h=${ac_cv_header_xlocale_h="no"}
gl_cv_C_locale_sans_EILSEQ=${gl_cv_C_locale_sans_EILSEQ="yes"}
gl_cv_func_duplocale_works=${gl_cv_func_duplocale_works="no"}
gl_cv_func_setlocale_works=${gl_cv_func_setlocale_works="yes"}
gl_cv_header_locale_h_needs_xlocale_h=${gl_cv_header_locale_h_needs_xlocale_h="}
gl_cv_header_locale_h_posix2001=${gl_cv_header_locale_h_posix2001="yes"}
gl_cv_header_locale_has_locale_t=${gl_cv_header_locale_has_locale_t="no"}
gl_cv_next_locale_h=${gl_cv_next_locale_h="<locale.h>"}
gt_cv_func_CFLocaleCopyPreferredLanguages=${gt_cv_func_CFLocaleCopyPreferredLan}
gt_cv_func_uselocale_works=${gt_cv_func_uselocale_works="no"}
gt_cv_locale_fake=${gt_cv_locale_fake="no"}
gt_cv_locale_fr=${gt_cv_locale_fr="fr_FR"}
gt_cv_locale_fr_utf8=${gt_cv_locale_fr_utf8="none"}
gt_cv_locale_ja=${gt_cv_locale_ja="none"}
gt_cv_locale_solaris114=${gt_cv_locale_solaris114="no"}
gt_cv_locale_tr_utf8=${gt_cv_locale_tr_utf8="none"}
gt_cv_locale_zh_CN=${gt_cv_locale_zh_CN="none"}
> - grep -i locale config.status
bash-2.03$ grep -i locale config.status
S["gl_LTLIBOBJS"]=" alphasort.lo asnprintf.lo at-func2.lo
canonicalize-lgpl.lo cnd.lo dirfd.lo dprintf.lo duplocale.lo error.lo
euidaccess.lo faccessat.lo fchmodat.lo "\
S["gl_LIBOBJS"]=" alphasort.o asnprintf.o at-func2.o canonicalize-lgpl.o
cnd.o dirfd.o dprintf.o duplocale.o error.o euidaccess.o faccessat.o fchmodat.o
fchownat.o f"\
S["LOCALE_TR_UTF8"]="none"
S["LOCALE_FR_UTF8"]="none"
S["LOCALE_ZH_CN"]="none"
S["LOCALE_JA"]="none"
S["NEXT_AS_FIRST_DIRECTIVE_LOCALE_H"]="<locale.h>"
S["NEXT_LOCALE_H"]="<locale.h>"
S["HAVE_XLOCALE_H"]="0"
S["REPLACE_FREELOCALE"]="0"
S["REPLACE_DUPLOCALE"]="1"
S["REPLACE_NEWLOCALE"]="0"
S["REPLACE_SETLOCALE"]="0"
S["REPLACE_LOCALECONV"]="0"
S["HAVE_FREELOCALE"]="0"
S["HAVE_DUPLOCALE"]="0"
S["HAVE_NEWLOCALE"]="0"
S["GNULIB_LOCALENAME"]="1"
S["GNULIB_DUPLOCALE"]="1"
S["GNULIB_SETLOCALE"]="1"
S["GNULIB_LOCALECONV"]="1"
S["LOCALE_FR"]="fr_FR"
S["localedir"]="${datarootdir}/locale"
D["HAVE_DUPLOCALE"]=" 1"
D["HAVE_USELOCALE"]=" 1"
D["HAVE_NEWLOCALE"]=" 1"
D["HAVE_FREELOCALE"]=" 1"
D["GNULIB_TEST_DUPLOCALE"]=" 1"
D["GNULIB_TEST_LOCALECONV"]=" 1"
D["GNULIB_TEST_LOCALENAME"]=" 1"
D["GNULIB_TEST_SETLOCALE"]=" 1"
/@localedir@/p
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
s&@localedir@&${datarootdir}/locale&g
Is it feasible to test the configure logic on your end by setting e.g.
gl_cv_header_locale_has_locale_t=no ?
--Daniel
--
Daniel Richard G. || address@hidden
My ASCII-art .sig got a bad case of Times New Roman.
Re: IBM z/OS compatibility issues - per-thread locale functions, Bruno Haible, 2019/11/17
Re: IBM z/OS compatibility issues - pthread, Bruno Haible, 2019/11/17
Re: IBM z/OS compatibility issues - shell environment, Bruno Haible, 2019/11/17
Re: IBM z/OS compatibility issues - environment variables, Bruno Haible, 2019/11/17
Re: IBM z/OS compatibility issues - miscellaneous bugs, Bruno Haible, 2019/11/17