Re: dtrace: give %'d a chance?

From: Mark Johnston <markj_at_freebsd.org>
Date: Thu, 19 Nov 2020 09:57:42 -0500
On Thu, Nov 19, 2020 at 01:28:56PM +0200, Andriy Gapon wrote:
> 
> what do people think about adding
>     setlocale(LC_NUMERIC, "");
> to dtrace's main function?

That seems reasonable to me.

> My primary interest is to (pretty-)print some numbers with a thousands separator.
> 
> Not sure if any other LC_ types are worth bothering.

Maybe LC_TIME?  libdtrace a couple of date formatters, %T and %Y.  A
locale-aware formatter might be worth having.
Received on Thu Nov 19 2020 - 13:57:47 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:25 UTC