Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Nov 2020 09:33:21 -0500
From:      Ash Gokhale <ashfixit@gmail.com>
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:  <CAHpe%2B0a81sAyjcZuGyxqGE45GMOYPf3eexQceKVa%2BP3EZyymbw@mail.gmail.com>
In-Reply-To: <d0bffbcb-0595-9aed-91ad-b81ecd7fd5e7@FreeBSD.org>
References:  <d832ce96-c7a9-7aac-b761-27522a02d0ef@FreeBSD.org> <CAHpe%2B0ZZ64b308hcGfTcPN8Pbv6Ai9LE6FkLhvNUUxLhWTr=7A@mail.gmail.com> <d0bffbcb-0595-9aed-91ad-b81ecd7fd5e7@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Oh, neat. My mistake for not understanding 'd.  Fire away.

On Thu, Nov 19, 2020 at 9:20 AM Andriy Gapon <avg@freebsd.org> wrote:

> 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@freebsd.org
> > <mailto:avg@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@freebsd.org <mailto:freebsd-dtrace@freebsd.org>
> mailing list
> >     https://lists.freebsd.org/mailman/listinfo/freebsd-dtrace
> >     To unsubscribe, send any mail to "
> freebsd-dtrace-unsubscribe@freebsd.org
> >     <mailto:freebsd-dtrace-unsubscribe@freebsd.org>"
> >
>
>
> --
> Andriy Gapon
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHpe%2B0a81sAyjcZuGyxqGE45GMOYPf3eexQceKVa%2BP3EZyymbw>