Danek Duvall <[email protected]> writes: > On Sat, Mar 21, 2009 at 04:47:16PM -0500, Harry Putnam wrote: > >> What does it mean if user $LC_TIME returns "" (nothing > > There are three "levels" of locale-related environment variables. > If LC_ALL is set, it's used for all the locale classes (date/time, > messages, collation, etc). If that's not set, then the > class-specific LC_ variables are used for their class. If they're > not set and LANG is, then that's used. See environ(5).
I was getting pretty confused in that man page. (Intellectually challenged..I guess) > > The environment variable LC_TIME (see environ(5)) is supposed to > > control that. However, neither /usr/bin/ls nor /usr/gnu/bin/ls > > seem to do the right thing, as far as I can tell. GNU ls > > differentiates between C and any other locale when using "ls -l" > > (C gets you the style you want), but I would expect the > > en_US.UTF-8 and fr_FR.UTF-8 locales to pony up different date > > formats, and they don't. I may be reading into what you say there... but I took it to mean the setting LC_TIME=C would cause the kind of dating I asked about in the case of /usr/gnu/bin/ls but not /bin/ls. Just reporting here I don't see that. Without setting anything different, that is, with $LANG set to en_US.UTF-8, which I guess happens when you choose english during install, and none of the others set. I see the output I wanted if I just use /bin/ls instead of /usr/bin/gnu/ls /bin/ls -l total 576 drwxr-xr-x 2 reader staff 18 Mar 21 16:35 bookmarks drwxr-xr-x 2 reader staff 6 Mar 21 13:41 Desktop drwxr-xr-x 6 reader staff 6 Mar 7 16:17 Documents [...] /usr/gnu/bin/ls -l total 288 drwxr-xr-x 2 reader staff 18 2009-03-21 16:35 bookmarks drwxr-xr-x 2 reader staff 6 2009-03-21 13:41 Desktop [...] And if I set $LC_TIME=C;export LC_TIME Then either one gives the kind of output I was after. There is little different spacing between ls versions but the date looks like: /usr/gnu/bin/ls -l total 288 drwxr-xr-x 2 reader staff 18 Mar 21 16:35 bookmarks drwxr-xr-x 2 reader staff 6 Mar 21 13:41 Desktop [...] Maybe I'm miss reading your comment but it appears to behave different for me. _______________________________________________ opensolaris-discuss mailing list [email protected]
