From nobody Sat Jan 13 20:12:15 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TC8hH5fJdz56Ywn for ; Sat, 13 Jan 2024 20:12:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TC8hH3rNZz4Gmm for ; Sat, 13 Jan 2024 20:12:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705176735; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PYp5/1XLgViChRTaJ9nG9sxlztiob+XocSokMR272Lw=; b=fOOPEhdxWEqEqN9aolB0Y+ukXjaJi5k14IjwcIOZBke6hrwILVAW33zXu9Yeq3Mb8XvyEn mDogLjAzb3cAa8DR1c3C41GGemCIbtelzuZQp96U4o6bQRjvWlZHptVoDuCZux+L6iPINX jRzSnUkFXDA6Sk+uacYK5XyrO6P+NsragFXgB2x5Df+Xqg6ir/Uahnu/58cxwpol9K+79f UALigx+SA4By0t+4cMipE/ipJnZO7jzNjVgnAjul5Td8URyBAG09Ttc1C+H8SQVC/kGlvZ 2fKzaNHog0zVkSy33nfPJrR0NkSuEQkfdXNRYGwJwMyt1fasufAq0mk9rq1yow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705176735; a=rsa-sha256; cv=none; b=FUKpw0ysVjeeDMZTfoKHUpW70jm8e5ZE0jQAVJEG0U+kbV0wE5s12E13awft0HykL2HTiG 7eEImOEiPqstxrd/iYbeHRLy4B+Ja8Clhkq+UZXuHAB1Vsu8dL8sfErx9mMbgzQrpuE1vM sS4Obt5Y2CSUuFojWd0jRnYXdFmNB2f9a6Gbi2eI+NMcXxCOYCHVOKoSDllFlTCZIMij8n ODyOH6I/kwN0oGF6a/OKsquzd7Y5jb6JKsxHq/GqoK2Vg6IPDfRBTw9zWXX6VYkRSieNoE Jub8bPQJ0AjLMFXsLMCqxoG/d78wCkY/oQnIEi12nQyOGYxoD+PS+Q4Cbe23bg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TC8hH2wTDzlBp for ; Sat, 13 Jan 2024 20:12:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 40DKCF95089159 for ; Sat, 13 Jan 2024 20:12:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40DKCFWW089139 for bugs@FreeBSD.org; Sat, 13 Jan 2024 20:12:15 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 276304] w(1) with produces invalid JSON output with --libxo json parameter on Croatian locale Date: Sat, 13 Jan 2024 20:12:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: vedran@miletic.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276304 Bug ID: 276304 Summary: w(1) with produces invalid JSON output with --libxo json parameter on Croatian locale Product: Base System Version: 14.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: vedran@miletic.net % w --libxo json {"uptime-information": {"time-of-day":" 9:01PM","uptime":2667682,"days":30,"hours":21,"minutes":1,"seconds":22,"upt= ime-human":" 30 days, 21:01,","users":2,"load-average-1":0,25,"load-average-5":0,34,"load-average= -15":0,30, "user-table": {"user-entry": [{"user":"vedranm","tty":"pts/1","from":"p508c7e40.dip0.t-ipconnect.de","lo= gin-time":" 8:44PM","command":"w --libxo json"}, {"user":"vedranm","tty":"pts/2","from":"tmux(40223).%0","login-time":"=C4= =8Det01PM","idle":20,"command":"btop"}]}}} This is not valid JSON. One can notice the values 0,25, 0,34, and 0,30; num= ber separator is printed as comma, while JSON requires the dot to be used regardless of locale. Setting locale to en_US.utf-8 like % env LC_ALL=3Den_US.utf-8 w --libxo json will produce correct result. Other comands, such as ps, output numbers with decimals as strings (bug 265223) and avoid this issue. --=20 You are receiving this mail because: You are the assignee for the bug.=