|
|
10.3: ls date format switched from previous releases
There actually is a dual-mode behavior to /bin/ls. I did a "strings" on the executable and found both
"%e %b" and "%b %e" in it ... then I looked at the FreeBSD source (of ls) and saw stuff like -- d_first = (*nl_langinfo(D_MD_ORDER) == 'd'); format = d_first ? "%e %b %Y " : "%b %e %Y "; in it ... and in /usr/include/langinfo.h on your system, it'll say -- #define D_MD_ORDER 57 /* month/day order (local extension) */ So it has something to do with D_MD_ORDER in the locale; Larry.
10.3: ls date format switched from previous releases
O.K. I think I get it now, md_order is defined in timedef of the locale source, for example --
# # md_order # md So, some of the locales in use probably have "dm" which is triggering that "d_first" in /bin/ls. If I can dump 'em or figure out which one(s), I'll post here. Larry.
10.3: ls date format switched from previous releases
I grep'ed all of the LC_TIME files under /usr/share/locale and most of them specify "dm"
as the month-date order, which is probably what's stimulating /bin/ls to do that. But the USA and Canada English locales do specify "md". I checked both my Date (time zone) and International System Preferences panels and those settings looked o.k.; so I'm still wondering which preference file is throwing off my current locale setting and so ls. Larry.
10.3: ls date format switched from previous releases
Due to a error introduced when porting the locale code, ls doesn't look at the order field; it always uses "dm". You're not going to find a preference to change it because it's a bug. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.15 seconds |
|