[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Segmentation fault in dcigettext.c:925 using Apache + PHP
From: |
Bruno Haible |
Subject: |
Re: Segmentation fault in dcigettext.c:925 using Apache + PHP |
Date: |
Thu, 25 Jun 2020 13:05:40 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-179-generic; KDE/5.18.0; x86_64; ; ) |
Wiebe Cazemier wrote:
> I was (quietly) also wondering if msgfmt would do better creating a new file
> instead of truncating the existing one. But, looking at search results, we
> are the only ones who have this problem, so probably creating .mo files
> frequently, based on user interaction, is a uncommon use case.
You mean, you create the file $LOCALEDIR/$locale/LC_MESSAGES/$domain.mo
directly by invoking 'msgfmt', not involving an intermediate file?
That is indeed uncommon, because in theory it's possible that msgfmt fails
(due to an unsupported combination of the input and options), and then you
would overwrite the previous .mo file and not have a backup.
The typical way is that .mo files are created while building a package
and copied to $LOCALEDIR/$locale/LC_MESSAGES/$domain.mo by installing the
built package.
Bruno
Re: Segmentation fault in dcigettext.c:925 using Apache + PHP, Wiebe Cazemier, 2020/06/09