dtrace: give %'d a chance?
Andriy Gapon
avg at FreeBSD.org
Thu Nov 19 14:20:53 UTC 2020
On 19/11/2020 15:31, Ash Gokhale wrote:
> I'm not a fan of reading nanosecond timestamps ; however This would add work to
> downstream scripts that have to toss the prettyprint later;
> s|.,()<whatever>||g downstream. Think of the wee awk scripts.
> Could we gate the behaviour behind an environment DTRACE_LOCALE or whatever?
>
> Eh It's getting harder to live in the C locale anyway, the immigration rules
> seem to be tightening.
Sorry, but you don't have to use %'d.
You can keep using %d.
> On Thu, Nov 19, 2020 at 6:29 AM Andriy Gapon <avg at freebsd.org
> <mailto:avg at freebsd.org>> wrote:
>
>
> what do people think about adding
> setlocale(LC_NUMERIC, "");
> to dtrace's main function?
>
> My primary interest is to (pretty-)print some numbers with a thousands
> separator.
>
> Not sure if any other LC_ types are worth bothering.
>
> --
> Andriy Gapon
> _______________________________________________
> freebsd-dtrace at freebsd.org <mailto:freebsd-dtrace at freebsd.org> mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-dtrace
> To unsubscribe, send any mail to "freebsd-dtrace-unsubscribe at freebsd.org
> <mailto:freebsd-dtrace-unsubscribe at freebsd.org>"
>
--
Andriy Gapon
More information about the freebsd-dtrace
mailing list