Skip to content

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

Closed
@bagder

Description

@bagder

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions