bugfindutils - Bugs: bug #36315, No results for files with special...

 
 

bug #36315: No results for files with special characters with LANG=en_US.utf8

Submitted by:  None
Submitted on:  Thu 26 Apr 2012 12:15:08 PM UTC  
 
Category:  find Severity:  3 - Normal
Item Group:  Wrong result Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Thomas Steinel Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  4.2.27
Fixed Release:  None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 26 Apr 2012 12:21:57 PM UTC, comment #1:

Please delete. Didn't see bug #26701

Sorry

Anonymous
Thu 26 Apr 2012 12:15:08 PM UTC, original submission:

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$

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by None (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.3