[haiku] Re: Can anyone explain this one?

  • From: pete.goodeve@xxxxxxxxxxxx
  • To: haiku@xxxxxxxxxxxxx
  • Date: Sun, 10 Jul 2011 14:27:40 -0700

On Sun, Jul 10, 2011 at 09:54:00AM +0000, Patrik Gissberg wrote:
> > > ls -R  /boot/system/add-ons >addons.list
> >
> > and this is what's reported!:
> >
> > ls: cannot compare file names `Mark as\342\200\246' and `Open Target 
> > Folder-O':
> > Invalid Argument
> Looks similar to http://dev.haiku-os.org/ticket/6263.
> 

May be related -- they both seem to involve UTF-8.  The actual cause
of the above glitch seems to be in ls's sorting, though.  It finally
dawned on me that the error was occurring even if I didn't redirect.
It was just getting lost in the reams of output!

Doing a 'find', I tracked it down to:

> ls /boot/system/add-ons/Tracker/
ls: cannot compare file names `Mark as\342\200\246' and `Open Target Folder-O': 
Invalid Argument
Background-B  Mark as Read-R        Open Terminal-T
DiskUsage-I   Mark asâ?¦               TextSearch-G
FileType-F    Open Target Folder-O  ZipOMatic-Z

It was obviously trying to sort the names "Mark as..." and "Open Target..."
without success.  In fact if I use "ls -U ..." the error goes away.

So apparently ls will have slight problems with occasional Haiku-legal
names.  Worth a ticket?

        -- Pete --


Other related posts: