Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendered man page incorrectly displays command line switches #159

Open
jheino3 opened this issue Sep 14, 2023 · 1 comment
Open

Rendered man page incorrectly displays command line switches #159

jheino3 opened this issue Sep 14, 2023 · 1 comment

Comments

@jheino3
Copy link

jheino3 commented Sep 14, 2023

First of all, my locale is set to "en_US.UTF-8" if that makes a difference.

man jpegoptim displays command line switches as Unicode HYPHEN rather than HYPHEN-MINUS. When copy-pasting a command from the rendered man page, it creates cryptic errors such as this:

Command:
jpegoptim ‐‐dest=./p file.jpg

Resulting error:
jpegoptim: file not found: ‐‐dest=./p

Looking at the documentation for "man", it appears that every '-' in jpegoptim.1 should be replaced with '\-'

This would would render the character '-' as HYPHEN-MINUS, allow copy-pasting of options without error. I'm kind of out of my element here, but I believe this is the problem and solution.

Thanks

@tjko
Copy link
Owner

tjko commented Oct 7, 2023

Interesting, I just tested on MacOS (LANG=en_US.UTF-8) and on Linux (LC_ALL=en_US.UTF-8) and couldn't reproduce this.

What OS are you seeing this on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants