* [PATCH] strcmp.3: tfix
@ 2021-05-22 16:17 Štěpán Němec
2021-05-23 10:39 ` Alejandro Colomar (man-pages)
0 siblings, 1 reply; 4+ messages in thread
From: Štěpán Němec @ 2021-05-22 16:17 UTC (permalink / raw)
To: linux-man, Alejandro Colomar, Michael Kerrisk
With a single backslash, '\0' ended up as ' ' in the man output.
Signed-off-by: Štěpán Němec <stepnem@gmail.com>
---
man3/strcmp.3 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/man3/strcmp.3 b/man3/strcmp.3
index c1992c18427c..469c9b6947d1 100644
--- a/man3/strcmp.3
+++ b/man3/strcmp.3
@@ -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)
base-commit: 65dfda3dd16da5cff236c4a84532ec40d7533578
--
2.31.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] strcmp.3: tfix
2021-05-22 16:17 [PATCH] strcmp.3: tfix Štěpán Němec
@ 2021-05-23 10:39 ` Alejandro Colomar (man-pages)
2021-05-23 10:50 ` Alejandro Colomar (man-pages)
0 siblings, 1 reply; 4+ messages in thread
From: Alejandro Colomar (man-pages) @ 2021-05-23 10:39 UTC (permalink / raw)
To: Štěpán Němec, linux-man, Michael Kerrisk
Hi Štěpán,
On 5/22/21 6:17 PM, Štěpán Němec wrote:
> With a single backslash, '\0' ended up as ' ' in the man output.
>
> Signed-off-by: Štěpán Němec <stepnem@gmail.com>
Patch applied.
Thanks,
Alex
> ---
> man3/strcmp.3 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/man3/strcmp.3 b/man3/strcmp.3
> index c1992c18427c..469c9b6947d1 100644
> --- a/man3/strcmp.3
> +++ b/man3/strcmp.3
> @@ -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)
>
> base-commit: 65dfda3dd16da5cff236c4a84532ec40d7533578
>
--
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] strcmp.3: tfix
2021-05-23 10:39 ` Alejandro Colomar (man-pages)
@ 2021-05-23 10:50 ` Alejandro Colomar (man-pages)
2021-05-23 11:11 ` Štěpán Němec
0 siblings, 1 reply; 4+ messages in thread
From: Alejandro Colomar (man-pages) @ 2021-05-23 10:50 UTC (permalink / raw)
To: Štěpán Němec, linux-man, Michael Kerrisk
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:
>> With a single backslash, '\0' ended up as ' ' in the man output.
>>
>> Signed-off-by: Štěpán Němec <stepnem@gmail.com>
>
> 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 <stepnem@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
diff --git a/man3/strcmp.3 b/man3/strcmp.3
index c1992c184..3c5a5a6ad 100644
--- a/man3/strcmp.3
+++ b/man3/strcmp.3
@@ -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/
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] strcmp.3: tfix
2021-05-23 10:50 ` Alejandro Colomar (man-pages)
@ 2021-05-23 11:11 ` Štěpán Němec
0 siblings, 0 replies; 4+ messages in thread
From: Štěpán Němec @ 2021-05-23 11:11 UTC (permalink / raw)
To: Alejandro Colomar (man-pages); +Cc: linux-man, Michael Kerrisk
On Sun, 23 May 2021 12:50:21 +0200
Alejandro Colomar wrote:
>> On 5/22/21 6:17 PM, Štěpán Němec wrote:
>>> With a single backslash, '\0' ended up as ' ' in the man output.
>>
>> Patch applied.
>
> D'oh, I forgot. We use \e to specify the escape character (see commit
> message of d1a719857b7eb68f5e5c1c965089038dee683240).
Oh, I should have noticed the usage in the very same man page...
Thank you for the reference, too.
> I dropped the patch and applied the following:
Thanks!
--
Štěpán
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-05-23 11:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-22 16:17 [PATCH] strcmp.3: tfix Štěpán Němec
2021-05-23 10:39 ` Alejandro Colomar (man-pages)
2021-05-23 10:50 ` Alejandro Colomar (man-pages)
2021-05-23 11:11 ` Štěpán Němec
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).