Re: Single digit dates

From: Sunder Iyengar (Sunder.Iyengar@VERITAS.COM)
Date: Wed Jan 08 2003 - 18:09:56 EST


Although I tried this out on AIX 5.1, it is probably the same on AIX 4.3.3
too.

Check if there are other locale variables set in the environment. These are
the LC_ variables.

env|grep LC

The LANG variable may be over-ridden by the LC_ locale variables.

For details, check out
http://publib.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixbman/admnconc/loca
le_env.htm

On my test box, with LANG set to en_US (and only LC__FASTMSG set), the dates
were two digits.
If I set LANG=C, then the dates show up as single digits (where applicable).

However, if I leave the LANG=en_US, then I can force the dates to single
digits by doing this -

LC_TIME=C
LC_CTYPE=C
export LC_TIME LC_CTYPE

Hope this helps.

Sunder.

-----Original Message-----
From: Frye, Matthew [mailto:Matthew.Frye@REXHEALTH.COM]
Sent: Thursday, 9 January 2003 09:41
To: aix-l@Princeton.EDU
Subject: Re: Single digit dates

The variable has been exported and is the same on both servers...and yes it
is exactly the same executable.

> ----------
> From: Scott Purkerson[SMTP:spurkerson@DOIT.NV.GOV]
> Reply To: IBM AIX Discussion List
> Sent: Wednesday, January 08, 2003 1:11 PM
> To: aix-l@Princeton.EDU
> Subject: Re: Single digit dates
>
> Out of curiosity, is the 'ls' executable exactly the same on both servers?
> The 'ls' command is one likely to be trojaned.
>
> tnx-
> Scott
>
> -----Original Message-----
> From: Frye, Matthew [mailto:Matthew.Frye@REXHEALTH.COM]
> Sent: Tuesday, January 07, 2003 12:20 PM
> To: aix-l@Princeton.EDU
> Subject: Single digit dates
>
>
> I've got two servers (both AIX 4.3.3) which exhibit dates differently.
> For
> example, the first server shows an "ls -l" for any files modified today in
> /
> as follows:
>
> -rw------ 1 root system 6522 Jan 07 15:15 .sh_history
>
> But the second system show's the files in / as:
>
> -rw------ 1 root system 6458 Jan 7 15:15 .sh_history
>
> Does anyone know where or how this property is set?
>
> Regards,
> Matt Frye
> Sr. Systems Programmer, RS/6000 Group
> Rex Healthcare
> (919) 784-3791
>



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:27 EDT