Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Oct 2024 08:45:38 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 276304] w(1) with --libxo=json produces invalid JSON output parameter on Croatian locale
Message-ID:  <bug-276304-227-EiTTAPYjjD@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-276304-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-276304-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276304

--- Comment #7 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3Dbd490be57438a82c22d1274bc58d51142=
b63f4a0

commit bd490be57438a82c22d1274bc58d51142b63f4a0
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2024-10-14 07:37:46 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2024-10-14 08:43:38 +0000

    w(1): fix libxo output being locale dependant

    by being locale dependant the json export is invalid in locales where
    the separator for float is a comma.
    The Json and the XML are invalid for login-time when days contains
    contains characters which are not unicode.

    Forcing locale to be C, makes this json and xml output valid and also
    identical accross locales, so reliable for parsers

    PR:             276304
    Reported by:    Vedran Miletic <vedran@miletic.net>

 usr.bin/w/w.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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