public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] for the printf.3 man page
@ 2022-07-06 13:31 Dr. Jürgen Sauermann
  2022-07-06 23:14 ` Alejandro Colomar
  0 siblings, 1 reply; 3+ messages in thread
From: Dr. Jürgen Sauermann @ 2022-07-06 13:31 UTC (permalink / raw)
  To: linux-man; +Cc: alx.manpages

[-- Attachment #1: Type: text/plain, Size: 440 bytes --]

Hi,

I would like to propose the attached patch for the printf(3) man page.

The patch adds the following sentence to the description of the ' flag 
(aka. thousands separator):

Note  also  that the default locale of a C program is "C" whose
locale information indicates no thousands' grouping  character.
Therefore,  without a prior setlocale(3) no thousands' grouping
  characters will be printed.


Best Regards,
Jürgen Sauermann


[-- Attachment #2: printf.3.patch --]
[-- Type: text/x-patch, Size: 241 bytes --]

380a381,384
> Note also that the default locale of a C program is "C" whose locale information
> indicates no thousands' grouping character. Therefore, without a prior
> .BR setlocale (3)
> no thousands' grouping characters will be printed.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch] for the printf.3 man page
  2022-07-06 13:31 [patch] for the printf.3 man page Dr. Jürgen Sauermann
@ 2022-07-06 23:14 ` Alejandro Colomar
       [not found]   ` <30e334f2-8134-40f4-f956-ae6f7c0b3fb9@xn--jrgen-sauermann-zvb.de>
  0 siblings, 1 reply; 3+ messages in thread
From: Alejandro Colomar @ 2022-07-06 23:14 UTC (permalink / raw)
  To: Dr. Jürgen Sauermann, linux-man


[-- Attachment #1.1: Type: text/plain, Size: 736 bytes --]

Hi Jürgen,

On 7/6/22 15:31, Dr. Jürgen Sauermann wrote:
> Hi,
> 
> I would like to propose the attached patch for the printf(3) man page.
> 
> The patch adds the following sentence to the description of the ' flag 
> (aka. thousands separator):
> 
> Note  also  that the default locale of a C program is "C" whose
> locale information indicates no thousands' grouping  character.
> Therefore,  without a prior setlocale(3) no thousands' grouping
>   characters will be printed.

Please send your patch in diff -u format.  See
<https://www.kernel.org/doc/man-pages/patches.html>

Thanks,

Alex

> 
> 
> Best Regards,
> Jürgen Sauermann
> 

-- 
Alejandro Colomar
<http://www.alejandro-colomar.es/>

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch] for the printf.3 man page
       [not found]   ` <30e334f2-8134-40f4-f956-ae6f7c0b3fb9@xn--jrgen-sauermann-zvb.de>
@ 2022-07-19 14:57     ` Alejandro Colomar
  0 siblings, 0 replies; 3+ messages in thread
From: Alejandro Colomar @ 2022-07-19 14:57 UTC (permalink / raw)
  To: Dr. Jürgen Sauermann; +Cc: linux-man


[-- Attachment #1.1: Type: text/plain, Size: 1060 bytes --]

Hi Jürgen,

On 7/7/22 11:33, Dr. Jürgen Sauermann wrote:
> Hi Alex,
> 
> yes, sorry. Here it is (attached and inline):

Patch applied.

Thanks,

Alex

> 
> 
> --- printf.3    2022-07-06 14:59:39.443234437 +0200
> +++ printf.3.new    2022-07-06 15:16:08.986946363 +0200
> @@ -378,6 +378,10 @@
>   cannot parse this option and will issue a warning.
>   (SUSv2 did not
>   include \fI%\(aqF\fP, but SUSv3 added it.)
> +Note also that the default locale of a C program is "C" whose locale 
> information
> +indicates no thousands' grouping character. Therefore, without a prior
> +.BR setlocale (3)
> +no thousands' grouping characters will be printed.
>   .PP
>   glibc 2.2 adds one further flag character.
>   .TP
> 
> 
> Jürgen
> 
> 
> On 7/7/22 1:14 AM, Alejandro Colomar wrote:
>> Hi Jürgen,
>>
>>
>> Please send your patch in diff -u format.  See
>> <https://www.kernel.org/doc/man-pages/patches.html>
>>
>> Thanks,
>>
>> Alex
>>
> 

-- 
Alejandro Colomar
<http://www.alejandro-colomar.es/>

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-07-19 14:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-06 13:31 [patch] for the printf.3 man page Dr. Jürgen Sauermann
2022-07-06 23:14 ` Alejandro Colomar
     [not found]   ` <30e334f2-8134-40f4-f956-ae6f7c0b3fb9@xn--jrgen-sauermann-zvb.de>
2022-07-19 14:57     ` Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox