bug-gettext
[Top][All Lists]
Advanced

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

Re: Possible bug in `msgfmt` (incorrect results when invoking --statisti


From: Natalia Bidart
Subject: Re: Possible bug in `msgfmt` (incorrect results when invoking --statistics with version 0.22.3)
Date: Wed, 6 Dec 2023 09:13:11 -0300

On Tue, Dec 5, 2023 at 7:23 PM Bruno Haible <bruno@clisp.org> wrote:
Hi,

> Hopefully I'm writing to the right list to report a possible issue with
> `msgfmt`. If not, please let me know!

Yes, this is the right list. In general, for GNU programs, the '--help' output
contains an indication where to send bug reports.

Hi, and thanks!

> tl;dr msgfmt --statistics returns different results for the same .po file
> depending on the msgfmt version
>
> Specifically, msgfmt 0.22.3 is reporting no untranslated strings for the
> .po file available at [0]

When I do a 'wget' of that URL, I get a JSON file. The URL that you meant was
probably
https://raw.githubusercontent.com/django/django-docs-translations/stable/5.0.x/translations/zh_Hans/LC_MESSAGES/releases.po

Yes.

> , and there are clearly untranslated strings
> (examples are at lines 1414, 1419, 1422, 1461, etc).

Yes, these are untranslated strings.

> $ msgfmt -V
> msgfmt (GNU gettext-tools) 0.22.3
> $ msgfmt --statistics -o /dev/null
> translations/zh_Hans/LC_MESSAGES/releases.po
> 7454 translated messages.

I obtain
$ msgfmt --statistics releases.po
1809 translated messages, 5116 untranslated messages.
with all versions in { 0.19, 0.20, 0.21, 0.22, 0.22.3, 0.22.4 }.

Either
  * You are working with different translations/zh_Hans/LC_MESSAGES/releases.po
    files in the two cases.
Or
  * Your GNU gettext binaries are broken.
    On which platform is this? Did you compile them yourself? If not, please
    CC the project from which you obtained these binaries.

Following this response, I triple checked that the file that I was using was the same one, as well as the binaries (I'm running Manjaro with binaries fetched from their package manager). I couldn't find anything wrong so I re-downloaded the file to another location, and compared hashes with the one in disk (which is part of a git repo). The hashes were different and `msgfmt` would report proper statistics for the recently downloaded file. So now I will debug my git repo for inconsistencies (more so because there are no local nor remote changes).

But at this point, this report is undoubtedly invalid, sorry for the false alarm!
Thank you for your complete response.

Regards, Natalia.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]