With a single backslash, '\0' ended up as ' ' in the man output.
Signed-off-by: Štěpán Němec <redacted>
---
man3/strcmp.3 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -143,7 +143,7 @@ First, some examples using .EX $ \fB./string_comp ABC ABC\fP <str1> and <str2> are equal-$ \fB./string_comp ABC AB\fP # \(aqC\(aq is ASCII 67; \(aqC\(aq\-\(aq\0\(aq = 67+$ \fB./string_comp ABC AB\fP # \(aqC\(aq is ASCII 67; \(aqC\(aq\-\(aq\\0\(aq = 67 <str1> is greater than <str2> (67) $ \fB./string_comp ABA ABZ\fP # \(aqA\(aq is ASCII 65; \(aqZ\(aq is ASCII 90 <str1> is less than <str2> (\-25)
@@ -143,7 +143,7 @@ First, some examples using .EX $ \fB./string_comp ABC ABC\fP <str1> and <str2> are equal-$ \fB./string_comp ABC AB\fP # \(aqC\(aq is ASCII 67; \(aqC\(aq\-\(aq\0\(aq = 67+$ \fB./string_comp ABC AB\fP # \(aqC\(aq is ASCII 67; \(aqC\(aq\-\(aq\\0\(aq = 67 <str1> is greater than <str2> (67) $ \fB./string_comp ABA ABZ\fP # \(aqA\(aq is ASCII 65; \(aqZ\(aq is ASCII 90 <str1> is less than <str2> (\-25)
Hi Štěpán,
On 5/23/21 12:39 PM, Alejandro Colomar (man-pages) wrote:
Hi Štěpán,
On 5/22/21 6:17 PM, Štěpán Němec wrote:
quoted
With a single backslash, '\0' ended up as ' ' in the man output.
Signed-off-by: Štěpán Němec <redacted>
Patch applied.
D'oh, I forgot. We use \e to specify the escape character (see commit
message of d1a719857b7eb68f5e5c1c965089038dee683240).
I dropped the patch and applied the following:
strcmp.3: tfix
With a simple backslash, '\0' ended up as ' ' in the man output.
Reported-by: Štěpán Němec [off-list ref]
Signed-off-by: Alejandro Colomar [off-list ref]
@@ -143,7 +143,7 @@ First, some examples using .EX $ \fB./string_comp ABC ABC\fP <str1> and <str2> are equal-$ \fB./string_comp ABC AB\fP # \(aqC\(aq is ASCII 67; \(aqC\(aq\-
\(aq\0\(aq = 67
+$ \fB./string_comp ABC AB\fP # \(aqC\(aq is ASCII 67; \(aqC\(aq \-
\(aq\e0\(aq = 67
<str1> is greater than <str2> (67)
$ \fB./string_comp ABA ABZ\fP # \(aqA\(aq is ASCII 65; \(aqZ\(aq
is ASCII 90
<str1> is less than <str2> (\-25)
--
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/http://www.alejandro-colomar.es/