[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Big picture of building & packaging
From: |
dev |
Subject: |
Re: Big picture of building & packaging |
Date: |
Wed, 21 Jun 2023 01:06:16 +0000 |
I'm back, apologies for taking a week to respond with more details.
Bruno wrote:
> So, on macOS where UTF-8 should be used everywhere, 'de_DE.UTF-8'
> is the locale name you meant.
Makes sense! It must be that po4a was relying on "de" being not found yet
somehow OSX's _libintl_setlocale fills in the gaps and finds it.
> This is unexpected: it's different from what I get.
>
> How come? To find out
> 1. cd gettext-tools/src
> 2. rm -f msginit-msginit.o
> 3. make -n msginit-msginit.o
> 4. Take that latter command, remove the "-c" and "-o msginit-msginit.o"
> options and instead add "-E -dD > msginit.preprocessed".
> Run that command.
> 5. Please send this msginit.preprocessed file (compressed, since it's large).
>
> I will take a look especially at the output lines that contain
> undef setlocale
> and
> define setlocale
Appreciate very much the clear instructions. I've attached a compressed tar
file with the before and after. I couldn't resist taking a look too and so far
noticed two things:
1. In 0.21.1, libgrep adds a new locale.h that is found first in the include
path.
2. It has the block defining setlocale as rpl_setlocale #if'ed out.
That section of locale.h looks like:
#if 0
# if 1
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
# undef setlocale
# define setlocale rpl_setlocale
# define GNULIB_defined_setlocale 1
# endif
Hope this helps,
Teddy
msginit.preprocessed.gz
Description: GNU Zip compressed data