Re: [hackers] [PATCH v3][sbase] cmp: Make output of error message POSIX compliant

From: Laslo Hunhold <dev_AT_frign.de>
Date: Tue, 21 May 2019 09:34:26 +0200

On Tue, 21 May 2019 09:19:55 +0200
Hiltjo Posthuma <hiltjo_AT_codemadness.org> wrote:

Dear Hiltjo,

> Have you compared it to other implementations? I think it should
> output to stdout.

I thought so too at first, but EOF is the only case where it should
print to stderr instead of stdout[0]. Only the results of the
comparison are printed to stdout.

> I'd also prefer to use the exact line format because POSIX specifies
> it. I think many understand the difference between char and wchar
> anyway.

Yeah, this is a philosophical matter and there are good reasons for
both approaches, the former in the interest of consistency, the latter
in the interest of conformance.

I'd lean more towards consistency, but don't have to decide. The
maintainer does.

With best regards

Laslo

[0]:https://pubs.opengroup.org/onlinepubs/009695399/utilities/cmp.html

-- 
Laslo Hunhold <dev_AT_frign.de>

Received on Tue May 21 2019 - 09:34:26 CEST

This archive was generated by hypermail 2.3.0 : Tue May 21 2019 - 09:36:24 CEST