On 2015-06-22 Norman Ramsey <n...@cs.tufts.edu> wrote:
> Package: findutils
> Version: 4.4.2-9+b1
> Severity: normal

> Dear Maintainer,

> What led up to the situation is a faulty library resulted in some file
> names that had DEL and other ugly characters embedded.  In trying to
> track down these files, I used find(1), but didn't find anything.
> Very surprising.

> Further investigation reveals that find(1) is failing to match pattern
> '*l_y_i_n*' when the shell does:

>   : nr@homedog 12294 ; find . -name '*l_y_i_n*'    
>   : nr@homedog 12295 ; echo *l_y_i_n*          
>   ��F_l_y_i_n_g_ _C_o_l_o_r_s
>   : nr@homedog 12296 ; echo *l_y_i_n* | od -a
>   0000000 del   ~   F   _   l   _   y   _   i   _   n   _   g   _  sp   _
>   0000020   C   _   o   _   l   _   o   _   r   _   s  nl
>   0000034
[...]

Hello,

I am sorry, but this specific example works for me:
(sid)ametzler@argenau:/tmp$ rm -rf /tmp/TTT ; mkdir TTT ; cd TTT
(sid)ametzler@argenau:/tmp/TTT$ touch "`printf '\x7F~F_l_y_i_n_g_ 
_C_o_l_o_r_s'`"
(sid)ametzler@argenau:/tmp/TTT$ echo *l_y_i_n* | od -a
0000000 del   ~   F   _   l   _   y   _   i   _   n   _   g   _  sp   _
0000020   C   _   o   _   l   _   o   _   r   _   s  nl
0000034
(sid)ametzler@argenau:/tmp/TTT$ export LC_ALL=C
(sid)ametzler@argenau:/tmp/TTT$ find . -name '*l_y_i_n*'
./?~F_l_y_i_n_g_ _C_o_l_o_r_s
(sid)ametzler@argenau:/tmp/TTT$ locale -a
C
C.UTF-8
POSIX
en_US
en_US.iso88591
en_US.utf8
(sid)ametzler@argenau:/tmp/TTT$ env LC_ALL=C.UTF-8 find . -name '*l_y_i_n*'
./?~F_l_y_i_n_g_ _C_o_l_o_r_s
(sid)ametzler@argenau:/tmp/TTT$ env LC_ALL=en_US.iso88591 find . -name '*l_y_i_n
*'
./?~F_l_y_i_n_g_ _C_o_l_o_r_s
(sid)ametzler@argenau:/tmp/TTT$ env LC_ALL=en_US.utf8 find . -name '*l_y_i_n*'
./?~F_l_y_i_n_g_ _C_o_l_o_r_s
(sid)ametzler@argenau:/tmp/TTT$ dpkg -s findutils | grep ^Version
Version: 4.4.2-10

cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'

Reply via email to