Date: Wed, 13 May 2026 10:48:24 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 283108] it_IT locale has wrong date/time format Message-ID: <bug-283108-227-PLaP0Hfi84@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-283108-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283108 Tijl Coosemans <tijl@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tijl@FreeBSD.org --- Comment #4 from Tijl Coosemans <tijl@FreeBSD.org> --- I think the problem is in uptime/w and not in the locale data. It uses a 12-hour format if nl_langinfo(T_FMT_AMPM) returns a nonempty string, but this string isn't necessarily empty in locales with a 24-hour clock. The locale might also support a 12-hour format or this string may represent a 24-hour format. From POSIX: T_FMT_AMPM Time format string using 12-hour clock format, if supported in the locale; if the 12-hour format is not supported, this shall be either an empty string or a string specifying a 24-hour clock format. I thought uptime/w could just use %X (which includes seconds) but all locales in share/timedef, including the US locale, use %H for X_fmt, so I think uptime/w can simply use a 24-hour format. -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-283108-227-PLaP0Hfi84>
