aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-04-17 15:31:20 -0400
committerEli Schwartz <eschwartz@archlinux.org>2023-05-22 21:20:18 -0400
commitaf49e8010b41633d7271e0711f4776077419b1fe (patch)
tree2b7e449ac7792c887c35e2709efe77657718d71e /mesonbuild
parent8d30577a2d085a3c0945af80bc99da8557cb9e44 (diff)
downloadmeson-af49e8010b41633d7271e0711f4776077419b1fe.zip
meson-af49e8010b41633d7271e0711f4776077419b1fe.tar.gz
meson-af49e8010b41633d7271e0711f4776077419b1fe.tar.bz2
i18n module: be broadly supportive of portable gettext tools
There are a number of implementations for msgfmt, supporting various options. The simplest, and most common, use case is to compile .po files into .mo files, and this should be able to work on gettext implementations other than the GNU one. The problem is that we were passing some pretty portable arguments in an unportable manner. The `-o` option-argument and its associated argument came after the input file operand, which violates the POSIX Utility Syntax Guidelines, and happens to not be supported by Solaris gettext. The GNU gettext doesn't care; GNU invented GNU argument permutation. Switch the order around so that our use respects the POSIX style.
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/modules/i18n.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/i18n.py b/mesonbuild/modules/i18n.py
index f5a66a4..0022deb 100644
--- a/mesonbuild/modules/i18n.py
+++ b/mesonbuild/modules/i18n.py
@@ -285,7 +285,7 @@ class I18nModule(ExtensionModule):
path.join(state.subdir, l, 'LC_MESSAGES'),
state.subproject,
state.environment,
- [self.tools['msgfmt'], '@INPUT@', '-o', '@OUTPUT@'],
+ [self.tools['msgfmt'], '-o', '@OUTPUT@', '@INPUT@'],
[po_file],
[f'{packagename}.mo'],
install=install,