# "POSIXLY_CORRECT" - "msgfmt: msgfmt: --tcl requires a "-l locale" specification"

3 messages from 2025-05-13 to 2025-05-14. Participants: Nathan Royce, Johannes Sixt.
Thread: https://gitlist.dev/t/63452

## Nathan Royce, 2025-05-13 08:17

Subject: "POSIXLY_CORRECT" - "msgfmt: msgfmt: --tcl requires a "-l locale" specification"
Message-ID: <CALaQ_hp2dgPS5HYpYPzztCS52SCnR9vF2ovAHZOBPpS8MRLSrA@mail.gmail.com>
URL: https://gitlist.dev/e/CALaQ_hp2dgPS5HYpYPzztCS52SCnR9vF2ovAHZOBPpS8MRLSrA%40mail.gmail.com

```
Order matters with POSIX. Arguments come before source/target.

Success: `msgfmt --statistics --tcl -l bg -d po/ po/bg.po`
vs
Fail: `msgfmt --statistics --tcl po/bg.po -l bg -d po/`

build/gitk-git
make[1]: *** [Makefile:76: po/bg.msg] Error 1
make: *** [Makefile:2466: all] Error 2

```

## Johannes Sixt, 2025-05-13 17:27

Subject: Re: "POSIXLY_CORRECT" - "msgfmt: msgfmt: --tcl requires a "-l locale" specification"
Message-ID: <fc923099-52ca-4f0d-8490-c5768a098444@kdbg.org>
URL: https://gitlist.dev/e/fc923099-52ca-4f0d-8490-c5768a098444%40kdbg.org
In-Reply-To: <CALaQ_hp2dgPS5HYpYPzztCS52SCnR9vF2ovAHZOBPpS8MRLSrA@mail.gmail.com>

```
Am 13.05.25 um 10:17 schrieb Nathan Royce:
> Order matters with POSIX. Arguments come before source/target.
> 
> Success: `msgfmt --statistics --tcl -l bg -d po/ po/bg.po`
> vs
> Fail: `msgfmt --statistics --tcl po/bg.po -l bg -d po/`
> 
> build/gitk-git
> make[1]: *** [Makefile:76: po/bg.msg] Error 1
> make: *** [Makefile:2466: all] Error 2

Thanks for the report. How did you get this report? Which OS and version?

-- Hannes


```

## Johannes Sixt, 2025-05-14 15:59

Subject: Re: "POSIXLY_CORRECT" - "msgfmt: msgfmt: --tcl requires a "-l locale" specification"
Message-ID: <dc575a3b-42b7-43a1-8338-e8b4f5a16237@kdbg.org>
URL: https://gitlist.dev/e/dc575a3b-42b7-43a1-8338-e8b4f5a16237%40kdbg.org
In-Reply-To: <CALaQ_hqoARJX2djK3dFUm=bUsnx9NVduQmqQVkbasCnLsixjaw@mail.gmail.com>

```
Am 14.05.25 um 08:50 schrieb Nathan Royce:
> On Tue, May 13, 2025 at 12:27 PM Johannes Sixt <j6t@kdbg.org> wrote:
>> Am 13.05.25 um 10:17 schrieb Nathan Royce:
>>> Order matters with POSIX. Arguments come before source/target.
>>>
>>> Success: `msgfmt --statistics --tcl -l bg -d po/ po/bg.po`
>>> vs
>>> Fail: `msgfmt --statistics --tcl po/bg.po -l bg -d po/`
>>>
>>> build/gitk-git
>>> make[1]: *** [Makefile:76: po/bg.msg] Error 1
>>> make: *** [Makefile:2466: all] Error 2
>>
>> Thanks for the report. How did you get this report? Which OS and version?
> 
> Just `\export POSIXLY_CORRECT=1` and try to build it. It won't.
> You don't even have to build it fully, just run both `msgfmt` with
> that environment variable set.

Thanks, fixed.

-- Hannes


```
