On Thu, Oct 27, 2005 at 10:31:47AM -0400, Michael Stone wrote:
> On Thu, Oct 27, 2005 at 01:20:47PM +0200, Eric Van Buggenhaut wrote:
> >Using find -type f doesn't solve the problem.
> 
> I didn't say it had anything to do with the problem, I just said that
> running a process per entry is inefficient.

OK, calm down, please, there's no personal attack, we're just trying to
track down a problem.

> 
> >How is it that I get that sequence: . . / / . / . . / / / . ??
> 
> Because in a non-C/POSIX locale that's how sorting works. Case and
> punctuation are ignored in a dictionary sort; the only time case and
> puncuation matter is if you're doing a ascii sort.

OK, I didn't know that. this ascii option isn't documented in the 
manpage. Maybe including it would be useful ? What option is it btw ?

> 
> >>If I had to guess I'd say that someone restarted cron and their
> >>environment is different than the system default one. (I.e., either
> >>their LANG is unset or set to C, or their LC_COLLATE is set to C.)
> >
> >No, the crontab is launched by /etc/crontab and always under the same 
> >id, ie root:
> 
> Did you read what I wrote? "I'd say that someone restarted cron".

No one can restart cron (ie, /etc/init.d/cron) but root and I'm the 
only person to know root's password.

> 
> >Given this and the example above, I'd say that the problem has nothing 
> >to do with locale
> 
> The example above isn't a problem, and is exactly the expected output
> when using a non-C locale.

Using C locale, I get the same result:

[EMAIL PROTECTED]:~]$ LANG=C LC_ALL=C LC_COLLATE=C LOCALE=C find 
/usr/local/RealPlayer/share/r* -type f|sort
/usr/local/RealPlayer/share/realplay.applications
/usr/local/RealPlayer/share/realplay.desktop
/usr/local/RealPlayer/share/realplay/embedded_logo.png
/usr/local/RealPlayer/share/realplay/icon.png
/usr/local/RealPlayer/share/realplay.keys
/usr/local/RealPlayer/share/realplay/logo.png
/usr/local/RealPlayer/share/realplay.mime
/usr/local/RealPlayer/share/realplay.png
/usr/local/RealPlayer/share/realplay/prefs_general.png
/usr/local/RealPlayer/share/realplay/setup_title.png
/usr/local/RealPlayer/share/realplay/setup_welcome.png
/usr/local/RealPlayer/share/realplay.xml

or do I miss something ?

-- 
Eric VAN BUGGENHAUT
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to