From nobody@FreeBSD.org  Thu Apr  4 01:53:07 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 04EDE37B417
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  4 Apr 2002 01:53:06 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g349r6Y73050;
	Thu, 4 Apr 2002 01:53:06 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200204040953.g349r6Y73050@freefall.freebsd.org>
Date: Thu, 4 Apr 2002 01:53:06 -0800 (PST)
From: Michael Wardle <michael@endbracket.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: make ps obey locale (particularly for times)
X-Send-Pr-Version: www-1.0

>Number:         36740
>Category:       bin
>Synopsis:       make ps(1) obey locale (particularly for times)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          suspended
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          wish
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 04 02:00:01 PST 2002
>Closed-Date:    Sat Jun 22 03:25:56 PDT 2002
>Last-Modified:  Wed May 21 21:34:24 UTC 2008
>Originator:     Michael Wardle
>Release:        4.5-RELEASE
>Organization:
>Environment:
>Description:
My account uses the en_AU locale.

I noticed when doing a "date" command, times are shown in the 24 hour
time format (as it obeys locale settings such as LC_ALL), yet when
doing a "ps -u", times are shown in a 24 hour time format.

It would seem desirable to make the ps command honor the locale for
displaying times and dates.

>How-To-Repeat:
      
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Michael Wardle <michael@endbracket.net>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org,
	Michael Wardle <michael@endbracket.net>
Cc:  
Subject: Re: bin/36740: make ps obey locale (particularly for times)
Date: Fri, 5 Apr 2002 05:36:58 -0800 (PST)

 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/
State-Changed-From-To: open->closed 
State-Changed-By: jmallett 
State-Changed-When: Sat Jun 22 03:24:30 PDT 2002 
State-Changed-Why:  


http://www.freebsd.org/cgi/query-pr.cgi?pr=36740 
State-Changed-From-To: closed->open 
State-Changed-By: jmallett 
State-Changed-When: Sat Jun 22 03:26:03 PDT 2002 
State-Changed-Why:  
Err, oops, I was going to close this, but then realised it should not be closed 
and was unable to abort it from the "Enter the reason" changed.  Sorry. 

Silly GNATS. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36740 
State-Changed-From-To: open->suspended 
State-Changed-By: vwe 
State-Changed-When: Wed May 21 21:34:10 UTC 2008 
State-Changed-Why:  

Mark suspended awaiting patches. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36740 
>Unformatted:
