From owner-freebsd-bugs Fri Apr 5 5:37: 1 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from web11205.mail.yahoo.com (web11205.mail.yahoo.com [216.136.131.187]) by hub.freebsd.org (Postfix) with SMTP id 7E7F337B41B for ; Fri, 5 Apr 2002 05:36:58 -0800 (PST) Message-ID: <20020405133658.88496.qmail@web11205.mail.yahoo.com> Received: from [203.134.78.193] by web11205.mail.yahoo.com via HTTP; Fri, 05 Apr 2002 05:36:58 PST Date: Fri, 5 Apr 2002 05:36:58 -0800 (PST) From: Michael Wardle Subject: Re: bin/36740: make ps obey locale (particularly for times) To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org, Michael Wardle In-Reply-To: <200204041000.g34A01x74473@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I meant "date" used a 24-hour format (depending on the locale), but "ps" always uses a 12-hour format (irrespective of locale). It turns out that the ps field "lstart" gives a date and time in the local time format, but the field "start" (as used by "ps -u") is hard-coded to use one particular format, presumably to ensure that the field width remains consistent. It seems fairly trivial to change the time format used by the "start" field to use a 24-hour time format, and I would suggest that it should, given that en_US and C locales both use 24-hour time. I'll file a separate bug for this. __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message