On my system, I've got files named like this: [2005-04-14 20-17-09] (0766) Sandra mit Cassandra auf Arm, Klinikum Barmen, Tag 23 - Schwarz-Wei�:009f.jpg I'll attach this file as a tar. The "?" is, according to hexdump, the following: 00000070 65 69 c3 3a 30 30 39 66 2e 6a 70 67 0a |ei.:009f.jpg.| So, it is a 0xc3 character. Instead of "�:009f" it should read "
On my system, I've got files named like this: [2005-04-14 20-17-09] (0766) Sandra mit Cassandra auf Arm, Klinikum Barmen, Tag 23 - Schwarz-Wei�:009f.jpg I'll attach this file as a tar. The "?" is, according to hexdump, the following: 00000070 65 69 c3 3a 30 30 39 66 2e 6a 70 67 0a |ei.:009f.jpg.| So, it is a 0xc3 character. Instead of "�:009f" it should read "ß". Now, the strange thing is, that I'm not able to find this file with "find" v4.3.0, when I use a "-name" parameter: $ find . | grep 766 ./[2005-04-14 20-17-09] (0766) Sandra mit Cassandra auf Arm, Klinikum Barmen, Tag 23 - Schwarz-Wei�:009f.jpg $ find . -name "*766*" $ $ ls -la insgesamt 916 drwxr-xr-x 2 alexander users 80 4. May 08:03 . drwxrwxrwt 3 root root 80 4. May 07:59 .. -rw-r--r-- 1 alexander users 922538 6. Nov 16:00 [2005-04-14 20-17-09] (0766) Sandra mit Cassandra auf Arm, Klinikum Barmen, Tag 23 - Schwarz-Wei?:009f.jpg -rw-r--r-- 1 alexander users 125 4. May 08:03 dateien.txt This behaviour is independent on which type of filesystem the file is stored. In the example above, I've got the file on a tmpfs, but it also happens with reiserfs, xfs or NFSv3. All of this does NOT happen, when I use find v4.1.20 on a non-Gentoo system. Because of that, I'm reporting this bug here in the Gentoo bugzilla. Why is that happening?
Created attachment 86117 [details] tar file containing the strangely named .jpg file
I now reported this bug upstream. See: https://savannah.gnu.org/bugs/index.php?func=detailitem&item_id=16520
I now recompiled findutils 4.3.0, and now find is behaving correctly - ie. a find . -name "*jpg" is also finding those strangely named files.