URL: <http://savannah.gnu.org/bugs/?36315>
Summary: No results for files with special characters with LANG=en_US.utf8 Project: findutils Submitted by: None Submitted on: Do 26 Apr 2012 12:15:08 UTC Category: find Severity: 3 - Normal Item Group: Wrong result Status: None Privacy: Public Assigned to: None Originator Name: Thomas Steinel Originator Email: thomas.stei...@t-online.de Open/Closed: Open Discussion Lock: Any Release: 4.2.27 Fixed Release: None _______________________________________________________ Details: System info: {somnus}tsteinel$ uname -a Linux dl0r3bhg284 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux {somnus}tsteinel$ find --version GNU find version 4.2.27 Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION SELINUX {somnus}tsteinel$ env HOSTNAME=dl0r3bhg284 TERM=xterm SHELL=/bin/bash HISTSIZE=1000 SSH_CLIENT=172.17.71.56 3075 22 OLDPWD=/opt/home/tsteinel SSH_TTY=/dev/pts/6 USER=tsteinel LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35: TMOUT=259200 MAIL=/var/spool/mail/tsteinel PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/opt/soe/local/bin:/opt/home/tsteinel/bin INPUTRC=/etc/inputrc PWD=/opt/home/tsteinel/problem LANG=C SHLVL=1 HOME=/opt/home/tsteinel LOGNAME=tsteinel SSH_CONNECTION=172.17.71.56 3075 172.17.153.174 22 LESSOPEN=|/usr/bin/lesspipe.sh %s DISPLAY=localhost:13.0 G_BROKEN_FILENAMES=1 Problem Description: In a nightly batch script, I am using the find command (find . -name "*.csv") which needs to find all csv files. Unfortunate there are a few files with characters like äöü (German Umlaut). The find command does not return these as a result. With LANG=C these files are returned. IMO the command used with the * must return these filenames independent of the LANG setting. {somnus}tsteinel$ touch Ö1.csv /opt/home/tsteinel/problem {somnus}tsteinel$ touch test.csv /opt/home/tsteinel/problem {somnus}tsteinel$ find . -name "*.csv" ./test.csv export LANG=C {somnus}tsteinel$ export LANG=C /opt/home/tsteinel/problem {somnus}tsteinel$ find . -name "*.csv" ./test.csv ./?1.csv /opt/home/tsteinel/problem {somnus}tsteinel$ _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?36315> _______________________________________________ Nachricht gesendet von/durch Savannah http://savannah.gnu.org/