[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #16520] find is not finding certain strangely named files
From: |
Andreas Metzler |
Subject: |
[bug #16520] find is not finding certain strangely named files |
Date: |
Thu, 15 Jun 2006 09:58:57 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20060503 Debian/1.7.8-1sarge6 |
Follow-up Comment #8, bug #16520 (project findutils):
James Youngman wrote:
> I would guess that the byte sequence in the filename does not
> correspond with a valid sequence of bytes in the character
> encoding systenm you have configured for your environment
I am pretty sure that was the cause, see
http://bugs.debian.org/cgi-bin/372499 which contains a example filetree.
> If so, the likely reason is that fnmatch() is failing to decode
> the (invalid) byte sequence according to the character encoding
> that has been specified.
It would be nice if <invalid seqquence>.jpg matched the pattern *.jpg. bash
and even dash seem to manage this:
UTF-8 locale set in test:
$ find -name '*gamix*mp3'
$ LC_ALL=C find -name '*gamix*mp3'
./dance/m?gamix.mp3
./dance/m?gamix.mp3
$ ls -d dance/*gamix*mp3
dance/m?gamix.mp3 dance/m?gamix.mp3
cu andreas
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=16520>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/