On Sat, Mar 21, 2009 at 10:13:41AM -0500, Harry Putnam wrote:

> >      --time-style=STYLE
> >           with -l,  show  times  using  style  STYLE:   full-iso,
> >           long-iso,  iso, locale, +FORMAT.  FORMAT is interpreted
> >           like `date'; if FORMAT is FORMAT1<newline>FORMAT2, FOR-
> >           MAT1  applies to non-recent files and FORMAT2 to recent
> >           files; if STYLE is prefixed with `posix-', STYLE  takes
> >           effect only outside the POSIX locale
> >
> 
> Oh.. thank you, yes I see.  I was thinking about setting something
> somewhere to make that happen by default.
> Is there such a setting?

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.

Solaris ls seems to ignore LC_TIME entirely, except to *translate* the
month name (when it's printed out), which seems utterly bogus to me.

Perhaps someone with a stronger i18n background than I can explain why I'm
wrong.

Danek
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to