Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Nov 2020 09:57:42 -0500
From:      Mark Johnston <markj@freebsd.org>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>, freebsd-dtrace@freebsd.org
Subject:   Re: dtrace: give %'d a chance?
Message-ID:  <X7aH5suHtYUsNq0x@raichu>
In-Reply-To: <d832ce96-c7a9-7aac-b761-27522a02d0ef@FreeBSD.org>
References:  <d832ce96-c7a9-7aac-b761-27522a02d0ef@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?X7aH5suHtYUsNq0x>