From owner-freebsd-dtrace@freebsd.org Thu Nov 19 13:31:48 2020 Return-Path: Delivered-To: freebsd-dtrace@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 01AC146BE8E; Thu, 19 Nov 2020 13:31:48 +0000 (UTC) (envelope-from ashfixit@gmail.com) Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CcLDy5b4jz4gHD; Thu, 19 Nov 2020 13:31:46 +0000 (UTC) (envelope-from ashfixit@gmail.com) Received: by mail-pf1-x434.google.com with SMTP id c66so4500110pfa.4; Thu, 19 Nov 2020 05:31:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uZegzEQvBfHqtonpGfAPNj9bZgWS2OUeSDyZ49ikwOs=; b=X41THM+fF8N+jiyTSpUcq1AlcSBvQGy7c0sTYGr/+TI2/9sBGS+9TD0Ksbq3a71BN4 bjbGUV+Q6Fs3tD8Vn5LXwvdyW/bp31vY5CZUL1XLsovn5vX6gumH3Mkswb1BBwc6bveh bFnY7QWUevTtgtwf7ronvjReRUR5MtT7raE0Qfjn63yFtMjuai1wxGU3kmvEtOj/ysCv mwaaSfJdHwEsbUa7EOHgTtY2ovmgJt5wlL6LLERoHuOZ5IuVb83+tAs7/xaYUlGtO61D DzRq3zbCsRQqk255U94dZE/eIJc4oKl3EFxtvtQeKrogX7IAWF+98XoW7NgNm4vwqyxX QdCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uZegzEQvBfHqtonpGfAPNj9bZgWS2OUeSDyZ49ikwOs=; b=pVO5OKuo0yTkjXjhVSrXt477x0pAcx/KTXSpS4MfoFyh2xTk95uecpBNnHGjGVgFK8 45fIfcqQNcvYPc/jCKpOz516+0E47dBh3t5mGAOkTwWszRfX08IaO3sguti0ZRSSYtUz Vja3YONuy5hWi36eI+OfSP81NlfuOAKLIpabDBU+90VwHKBYVkL7MC8pArWH5OuNXvub Yhg2gvVxPXoQUw3hKlCqL2tAymLJeh7Zld+kneKwsbIZfs+A1jQChSD3jf7N1zOtE2mA Af5eJtWhDxRDwwqFDPO565k7PUmbSPn2Y3OzPEGOTEvmTNcdOIAWjGJ3TL9yLeUNa/db OjAw== X-Gm-Message-State: AOAM532lFldpEB54vuijLTzXbufY3+xv8eTIoX9xMpzlkE+/0xz2oe30 1lryhtwW0l2HXuq1g4fdFO+syUsh4sX/U7OyjZf8V8DZle4= X-Google-Smtp-Source: ABdhPJwbk0ijNcHjULrOsKprhJt4Tetjm7jfwTvS04L2NfMPR2enKp2hx7PEoTO1A5yZp/HaUuV3To9gTFMkcyIHuE8= X-Received: by 2002:a63:c90d:: with SMTP id o13mr13125863pgg.289.1605792704777; Thu, 19 Nov 2020 05:31:44 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ash Gokhale Date: Thu, 19 Nov 2020 08:31:33 -0500 Message-ID: Subject: Re: dtrace: give %'d a chance? To: Andriy Gapon Cc: FreeBSD Current , freebsd-dtrace@freebsd.org X-Rspamd-Queue-Id: 4CcLDy5b4jz4gHD X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=X41THM+f; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of ashfixit@gmail.com designates 2607:f8b0:4864:20::434 as permitted sender) smtp.mailfrom=ashfixit@gmail.com X-Spamd-Result: default: False [-1.02 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::434:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; NEURAL_SPAM_SHORT(0.98)[0.977]; NEURAL_HAM_LONG(-1.00)[-1.000]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::434:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::434:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current,freebsd-dtrace] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2020 13:31:48 -0000 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|.,()||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. -Ash On Thu, Nov 19, 2020 at 6:29 AM Andriy Gapon 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 mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-dtrace > To unsubscribe, send any mail to "freebsd-dtrace-unsubscribe@freebsd.org" >