www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2026/02/04/12:11:37

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 614HBb0x560623
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 614HBb0x560623
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=mDx87UNy
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4A6C24BA2E15
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1770225095;
bh=8leWeTkOD1GJ8VGP/r2e/4vUYresvG1mL8AkAwLT11c=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=mDx87UNyUhS0OeWeyt+RoKvyLLSOBFdBbvDAkkq5MC3zXPaHTwdonI0aO1bv+K9iA
DK00iDFn/L7nWQVSKkQqjDgs+ZC389V34f4VQS0YhcOfgdqTZ20sW8DE9LXpLKhH8b
Q7ys9+gT3bx2a5U7fc2rKOCFNUmeWLyQU7xWvYpk=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AFFC04BA2E08
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org AFFC04BA2E08
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1770225047; cv=none;
b=UXuswRHHSai11Y9wUyMKGd2Yv8bUuzRbOJ6w9CBSGIqJK8TSDl1YYTaQxIpjtVmqUeGSrotME5IslnK4Wfo8K2eVL+hKWK2/motEKZcEQpbni7j+UAa2i8jG/hfH7VJcu0KdQmsuxZ99dXPy4zzYsuXPZHl5CaXKXx0GIvWzLAY=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1770225047; c=relaxed/simple;
bh=8SAW2xxrVfIqyQEJdlF5DNBG+tObC4PCAfMi4cQJuU4=;
h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature;
b=xXj6/P8CmbOKWb5Q6Zy8ZIw0HUA9mU+cvULkJvHOkItk9Bo0jjb5EQuasRlD8YKdIpZMvGJZw4hR3wEzdDoIvRmMxrcs++8Sr8hhf2KYTIht9RLXtMPCYYerMyIvKdA+T3J6HTNtxGAj+n83cTVKq6wwITbJXPLp43VuEaygOLo=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AFFC04BA2E08
Message-ID: <bb351b4c-cf88-4480-b58a-46301a084c17@SystematicSW.ab.ca>
Date: Wed, 4 Feb 2026 10:10:44 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: [FLAC 1.5.0-1] Man pages use HYPHEN character instead of
HYPHEN-MINUS.
To: cygwin AT cygwin DOT com
References: <CAAA95V9-WVQh5hbOvtZhCOBU8JpmfR98E+=aQyeOa+b1H2S_-Q AT mail DOT gmail DOT com>
Organization: Systematic Software
In-Reply-To: <CAAA95V9-WVQh5hbOvtZhCOBU8JpmfR98E+=aQyeOa+b1H2S_-Q@mail.gmail.com>
X-Stat-Signature: bbz7w5grdey199fruhdwtnpowmj7r9k1
X-Rspamd-Server: rspamout04
X-Rspamd-Queue-Id: 8209820029
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX19HnX3zahAezC8CYP8PcSacade5559G9fo=
X-HE-Tag: 1770225045-252620
X-HE-Meta: U2FsdGVkX1/h56Q+Q79odMJyoCy/Y3hJwij6G/nTU+Nh10Ea1JUZVFwPQ0yWzzAH2Mj9cwM/h7qJYwYzchk5rdZjYaLDtfHe8u61zKZ5SvhQHv33PLRM3AbT0w/ybzi/sUVcUhH6pmBwqHIYO/LmlWx5x8FMlLjB4dsfm1fBixCTgB/PeJw7cfPG2V+26RYCs9EiAiOaEzEf2VFvMKTMve1czgkHPkV7/XCM2KH7oEpi1iIHlgYjZM5hsKixo1pRSq8NfQSGSMdzGc+cvuhwgoRQb2IK1WUUjZbtAkHlqWmUin1zchkE/1px1ptPbcMGgrGt56mo480A460UkQherotY3lCdIGIyGhP9r5/XfBpUNPWE1SFsLWBIv610g6TEvMCKX0/Calo=
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Brian Inglis <Brian DOT Inglis AT SystematicSW DOT ab DOT ca>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 614HBb0x560623

On 2026-02-04 02:56, Vincent via Cygwin wrote:
> My request is related to an issue I opened in the FLAC Github :
> https://github.com/xiph/flac/issues/861
> 
> After some investigations, the issue is related to the build release of the
> FLAC package provided by Cygwin : the man pages of flac(1) and metaflac(1)
> use the HYPHEN (U+2010 )  character instead of the HYPHEN-MINUS  (U+002D)
> character.
> 
> These two commands expect HYPHEN-MINUS character, so if you copy-paste the
> man page options in your terminal, it will fail.
> 
> Example : flac ‐‐version
> will return an error : « can't open input file ‐‐version: No such file or
> directory », because of  « ‐‐version » with HYPHEN copied-pasted from the
> man pages.
> 
> The right string is « --version » with HYPHEN-MINUS (U+002D).
> 
> Example : flac --version
> will return : « flac 1.5.0 »
> 
> Please, feel free to read the issue in Github (
> https://github.com/xiph/flac/issues/861 ) for more details, as it's easier
> to read code and quotes with the markdown formatting.
> 
> This is a very pretty nasty kind of bug, because it's very difficult to
> distinguish HYPHEN-MINUS and HYPHEN in a terminal. It's also very difficult
> to figure out why the command has failed, as the « No such file or
> directory » is not the root cause of the problem.
> 
> I think a new build release to fix this, would be very welcome.
> 
> Thank you very much for your time and your great work. :)

Upstream sources seems to provide only .md man sources and no b-r package for 
conversion (pandoc unavailable from Cygwin) so man pages are generated for the 
upstream sources, and this conversion generates man page options with plain text 
hyphen-minus, which are treated by man as normal text *hyphen* `‐­­` not plain 
text *minus* `-`.
In man pages you use escaped hyphen-minus `\fB\-v\fR` to treat them as minus 
text `-` as used in options `-v`.
We see this use of unescaped hyphens in the upstream tar files, below, so please 
complain upstream about their man page generation, and reopen their issue:
```
$ wget https://mirror.../x86_64/release/flac/flac-1.5.0-1-src.tar.xz
$ tar -xvf flac-1.5.0-1-src.tar.xz
flac-1.5.0-1.src/
flac-1.5.0-1.src/flac-1.5.0.tar.xz			# upstream sources
flac-1.5.0-1.src/FLAC.cygport
$ tar -xvf flac-1.5.0-1.src/flac-1.5.0.tar.xz flac-1.5.0/man/{,meta}flac.1
flac-1.5.0/man/flac.1
flac-1.5.0/man/metaflac.1
$ grep -m5 '\\f[[{]\?B[]}]\\\?-' flac-1.5.0/man/{,meta}flac.1
flac-1.5.0/man/flac.1:\f[B]-\f[R] \f[I]\&...\f[R] ]
flac-1.5.0/man/flac.1:\f[B]flac\f[R] [ \f[B]-d\f[R] | \f[B]--decode\f[R] | 
\f[B]-t\f[R] |
flac-1.5.0/man/flac.1:\f[B]--test\f[R] | \f[B]-a\f[R] | \f[B]--analyze\f[R] ] [
flac-1.5.0/man/flac.1:\f[I]infile.ogg\f[R] | \f[B]-\f[R] \f[I]\&...\f[R] ]
flac-1.5.0/man/flac.1:\f[B]-d\f[R], analysis with \f[B]-a\f[R] or testing with 
\f[B]-t\f[R].
flac-1.5.0/man/metaflac.1:\f[B]-o\f[R] \f[I]filename\f[R]\f[B], 
--output-name=\f[R]\f[I]filename\f[R]
flac-1.5.0/man/metaflac.1:\f[B]--preserve-modtime\f[R]
flac-1.5.0/man/metaflac.1:\f[B]--with-filename\f[R]
flac-1.5.0/man/metaflac.1:\f[B]--no-filename\f[R]
flac-1.5.0/man/metaflac.1:\f[B]--no-utf8-convert\f[R]
```

[pasted upstream also but can not reopen issue!]

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher  but when there is no more to cut
                                 -- Antoine de Saint-Exupéry

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019