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

man page uses unicode HYPHEN instead of ascii '-' #11635

Closed
bagder opened this issue Aug 9, 2023 · 0 comments
Closed

man page uses unicode HYPHEN instead of ascii '-' #11635

bagder opened this issue Aug 9, 2023 · 0 comments

Comments

@bagder
Copy link
Member

bagder commented Aug 9, 2023

I did this

man curl

Go to the example command lines showing --connect-timeout . Copy the first example. Paste it into a terminal.

$ curl ‐‐connect‐timeout 20 https://example.com
curl: (6) Could not resolve host: xn--connecttimeout-462hah

man has "helpfully" converted the ascii minus byte code 45 into a unicode hyphen (U+2010).

First reported here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1043309 by FC Stegerman

I expected the following

The example to work.

curl/libcurl version

8.2.1 and current master

operating system

Debian unstable x86_64 (up-to-date)

More details

$ man --version 
man 2.11.2
$ echo $LANG
en_US.UTF-8
@bagder bagder changed the title man pages uses unicode HYPHEN instead of ascii '-' man page uses unicode HYPHEN instead of ascii '-' Aug 9, 2023
bagder added a commit that referenced this issue Aug 9, 2023
@bagder bagder closed this as completed in 6911fec Aug 9, 2023
ptitSeb pushed a commit to wasix-org/curl that referenced this issue Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

1 participant