https://bugzilla.redhat.com/show_bug.cgi?id=1418635
Bug ID: 1418635 Summary: gettext() does not work on aarch64 Product: Fedora Version: 25 Component: gettext Assignee: praiskup@redhat.com Reporter: christophm30@gmail.com QA Contact: extras-qa@fedoraproject.org CC: dueno@redhat.com, i18n-bugs@lists.fedoraproject.org, petersen@redhat.com, praiskup@redhat.com
Created attachment 1247091 --> https://bugzilla.redhat.com/attachment.cgi?id=1247091&action=edit Code to reproduce the bug
I was not able to get the proper translation from gettext() on an aarch64 machine. The same code however works fine on x86_64.
To reproduce the issue one can use the following instructions:
1) Create the following directory structure: mkdir -p fi/LC_MESSAGES
2) Create the file fi/LC_MESSAGES/messages.po with the following content: msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" msgid "Basic test" msgstr "Perustesti"
3) Compile a mo: msgfmt -o fi/LC_MESSAGES/messages.mo fi/LC_MESSAGES/messages.po
4) Compile the attached file and run it (no special compiler flags used). The code essentially does: a. setlocale(LC_ALL, "fi_FI"); b. bindtextdomain("messages", "./locale"); c. textdomain("messages"); d. gettext("Basic test")
On aarch64 this results in "Basic test". On x86_64 this results in "Perustesti".
FWIW, I was able to reproduce this bug on the following aarch64 Linux distributions as well:
* Ubuntu Xenial * CentOS 7 * OpenSUSE Leap 42.2
https://bugzilla.redhat.com/show_bug.cgi?id=1418635
--- Comment #1 from Fedora End Of Life jkurik@fedoraproject.org --- This message is a reminder that Fedora 25 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 25. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '25'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 25 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
https://bugzilla.redhat.com/show_bug.cgi?id=1418635
Fedora End Of Life jkurik@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |EOL Last Closed| |2017-12-12 05:32:41
--- Comment #2 from Fedora End Of Life jkurik@fedoraproject.org --- Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug.
Thank you for reporting this bug and we are sorry it could not be fixed.
i18n-bugs@lists.fedoraproject.org