Re: [systemd-devel] Additional Locale Variables for Units and Number Format

2023-08-31 Thread Lennart Poettering
On Di, 29.08.23 17:17, TJ Shipp (onezoo...@msn.com) wrote: > I am trying to add in support for a separate variable to change our unit > system, and having both LANG and UNITS to identify the "locale" of the system. > We are also not only looking for English versus Metric, but are looking for > m

Re: [systemd-devel] Additional Locale Variables for Units and Number Format

2023-08-30 Thread Dave Howorth
On Wed, 30 Aug 2023 00:53:55 + TJ Shipp wrote: > Thank you, I think LC_NUMERIC will work for the number formatting, my > company is also looking for something along the lines of this, and > hoping to use locale/systemd to handle it: > > https://lists.freedesktop.org/archives/xdg/2023-August/0

Re: [systemd-devel] Additional Locale Variables for Units and Number Format

2023-08-29 Thread TJ Shipp
(Christian Pernegger) -- Message: 1 Date: Tue, 29 Aug 2023 23:19:19 +0300 From: Mantas Mikul?nas To: TJ Shipp Cc: Systemd Subject: Re: [systemd-devel] Additional Locale Variables for Units and Number Format Message-ID: Content-Type: text/p

Re: [systemd-devel] Additional Locale Variables for Units and Number Format

2023-08-29 Thread Mantas Mikulėnas
It sounds like you're reinventing LC_NUMERIC. The locale system has a lot more than just LANG; it already allows the number format to be overridden separately from the "language". Take a look at `locale -k LC_NUMERIC` and < https://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap07.html>.