> On Mon, 2015-01-26 at 10:38 +0200, sam...@openvpn.net wrote: >> From: Alberto Gonzalez Iniesta <a...@inittab.org> >> >> This patch continues the work started in commit 886593ac4ae ("The man page >> needs >> dash escaping in UTF-8 environments"). This patch is one of the patches >> included >> in Debian's OpenVPN packages. > Note that this isn't perfect either. The escaped \- is supposedly > rendered as a minus sign... but you don't actually *want* a minus sign. > > If you ever render the manual into HTML, that's exactly what you'll > get: U+2212 MINUS SIGN. I've had users complaining to me because when > they cut and paste from an HTML-rendered man page, their command lines > don't work. > > What you really want is U+002D HYPHEN-MINUS¹. I think it could actually > be considered a groff bug if you *do* get U+002D HYPHEN-MINUS in the > UTF-8 terminal output — it should be U+2212 MINUS SIGN there too, > according to the definition. > > FWIW I *can* search for 'For --management-client' even before this > patch, on Fedora 21. Changing to \- isn't required to fix the searching > here. Is it still required on Debian? > Hi,
The original problem seemed to be that strings like "--win-sys" could not be found from the man-page unless the dashes were escaped: <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=296133> I tried to reproduce the problem on Ubuntu 14.04, Debian 6 and CentOS 6 and was unable to. Having or not having escaped dashes made absolutely no difference. Note that I only tested "less" as the pager. In any case, it looks like the problem got fixed outside of OpenVPN, which leaves us with an inconsistent escaping style on the man-page. -- Samuli Seppänen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock
signature.asc
Description: OpenPGP digital signature