coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

find: locale affects results incorrectly


From: sunnycemetery
Subject: find: locale affects results incorrectly
Date: Fri, 7 Aug 2020 09:06:21 -0400

... possibly.  Please see for yourself:

■ LC_ALL=C ls -l
total 1
-rw-r--r-- 1 userx userx 0 Aug 7 08:35 ''$'\325\253\302\265\366''+'$'\325\361\275\322\374\253\322\342\203\322\351''+'$'\322\351\245\322\342\304\264''+'$'\364''rd'$'\264''+'$'\342''07.srt'
■ echo $LANG
ja_JP.utf8
■ find -name '*.srt'
■ LC_ALL=C find -name '*.srt'
./?????+???????????+???????+?rd?+?07.srt

I have attached logs of the following debug command for either locale, with ‘ and ’ replaced with ' for quick diff comparison. Debug output does not elucidate much, but perhaps someone can shed light on how such a seemingly simple search could possibly fail (or even be affected by locale in the first place).

find -D all -name '*.srt'

Attachment: C
Description: Text document

Attachment: ja_JP.utf8
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]