bugfindutils - Bugs: bug #21629, Find with -iname switch cannot see...

 
 

bug #21629: Find with -iname switch cannot see filename containing character "ä"

Submitted by:  None
Submitted on:  Fri 23 Nov 2007 04:24:53 AM UTC  
 
Category: findSeverity: 3 - Normal
Item Group: Wrong resultStatus: Works For Me
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 4.1.20
Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Mon 17 Dec 2007 11:16:52 AM UTC, comment #8:

OK. Because there were some relevant bugfixes a long time ago and I can't reproduce the problem, I'm going to close the bug as obsolete. If you can reproduce the problem with the current release of findutils (either 4.2.x or 4.3.x) please open a new bug. Thanks.

James Youngman <jay>
Project AdministratorIn charge of this item.
Mon 17 Dec 2007 10:53:44 AM UTC, comment #7:

I'm still here...
However I'm on real shit wireless connection atm and it wont be until just after xmas that I'll have a real connection to work with... You will sure hear from me then I promise...
Nice to see you guys are really proactive on solving bugs.

Max <stereotype>
Sat 15 Dec 2007 10:33:32 PM UTC, comment #6:

Ping

James Youngman <jay>
Project AdministratorIn charge of this item.
Sat 01 Dec 2007 06:06:38 AM UTC, comment #5:

I'm moving continents in 4 days, hence my lack of time to report on this issue... I haven't forgotten about this, and I won't, since this company relies only on me to fix such issues, so I'll report back as soon as I find some free time...

Btw, this time find cannot see 7 files... It will be interesting to know more about what's going on...

Max <stereotype>
Fri 30 Nov 2007 10:59:02 AM UTC, comment #4:

Max, any new information?

James Youngman <jay>
Project AdministratorIn charge of this item.
Mon 26 Nov 2007 03:09:29 AM UTC, comment #3:

Hi. Ok we run a CentOS server, hence why I run an old find version.
The problem popped up again, so this time I'll use the latest find version and I'll report back soon...

Max <stereotype>
Fri 23 Nov 2007 12:13:33 PM UTC, comment #2:

Thanks for the bug report. But please take a look at the instructions presented at the top of the page that you used to submit the bug. Item 1 in that list is "Are you using a recent version of findutils? Is your problem fixed in the current version?".

You didn't say whether or not you also tested this with the current version of findutils; since you didn't mention it, I'll assume not for the time being.

youngman@whatever:/tmp/accents$ ls -1
Gruß.mp3
a.mp3
b.mp3
c.mp3
Ñ.mp3
ä.mp3
å.mp3
æ.mp3
youngman@whatever:/tmp/accents$ /usr/bin/find . -iname "*.mp3"
./a.mp3
./b.mp3
./c.mp3
./ä.mp3
./å.mp3
./æ.mp3
./Gruß.mp3
./Ñ.mp3
youngman@whatever:/tmp/accents$ /usr/bin/find --version
GNU find version 4.2.27
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION

So I think this problem is already fixed. Please confirm whether or not this is the case. Thanks.

James Youngman <jay>
Project AdministratorIn charge of this item.
Fri 23 Nov 2007 05:07:04 AM UTC, comment #1:

4.1.20 is rather old; 4.3.9 was just released this month.

Meanwhile, -iname is based on strcasecmp, which is locale-dependent. In the C locale, ä is not equivalent to a; in other locales, whether they are equivalent depends on the locale.. Without knowing your locale settings, I would have to guess that this is merely a setup problem and not a find bug.

Eric Blake <ericb>
Project Administrator
Fri 23 Nov 2007 04:24:53 AM UTC, original submission:

I had 1100 files in a folder called /mp3files
One of this files had the character "ä" in the filename, as the singer was from somewhere in europe.
Find would give me the following:

find /mp3files/*.mp3 |wc -l -> 1100 files
find /mp3files -iname *.mp3 |wc -l -> 1099 files

So I found out that the -iname switch was not seeing the file with the "ä" character... After renaming "ä" to "a", "find -iname" would then give me 1100 files...

I was using GNU find version 4.1.20

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by stereotype (Posted a comment)
  • -unavailable- added by jay (Posted a comment)
  • -unavailable- added by ericb (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 17 Dec 2007 11:16:52 AM UTCjayStatusNeed Info=>Works For Me
      Open/ClosedOpen=>Closed
    Fri 23 Nov 2007 12:13:33 PM UTCjayStatusNone=>Need Info
      Assigned toNone=>jay

    Back to the top


    Powered by Savane 3.1-cleanup1