bugfindutils - Bugs: bug #67135, find -ls output is ASCII-only even...

 
 

bug #67135: find -ls output is ASCII-only even in UTF-8 locales

Submitter:  Andreas Metzler <ametzler>
Submitted:  Sat 17 May 2025 11:15:14 AM UTC
   
 
Category:  find Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release:  4.9.0
Fixed Release:  None
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Thu 28 Aug 2025 02:35:12 AM UTC, comment #2: 
yixiangzhike <yixiangzhike>
Thu 28 Aug 2025 02:27:47 AM UTC, comment #1: 

Currently, find -ls prints by calling the print_name_with_quoting method, which only handles ASCII. I think we can just print it out directly.

yixiangzhike <yixiangzhike>
Sat 17 May 2025 11:15:14 AM UTC, original submission:  

Hello,

this was originally reported as <https://bugs.d ... an.org/1105742>.

find -ls is too conservative in quoting, -ls basically quotes everything non-ascii instead of looking at LC_CTYPE


ametzler@argenau:/tmp/testggf$ locale | grep CTY
LC_CTYPE="de_AT.UTF-8"
ametzler@argenau:/tmp/testggf$ touch Österreich
ametzler@argenau:/tmp/testggf$ find -type f -ls
      175      0 -rw-rw-r--   1 ametzler ametzler        0 Mai 17 13:02 ./\303\226sterreich
ametzler@argenau:/tmp/testggf$ /bin/ls -l
total 0
-rw-rw-r-- 1 ametzler ametzler 0 17. Mai 13:02 Österreich


cu Andreas

Andreas Metzler <ametzler>

 

Attached Files

Attached Files
file #57584:  fix-find-ls-output-not-as-expected.patch added by yixiangzhike (794B - application/octet-stream - Currently, find -ls prints by calling the print_name_with_quoting method, which only handles ASCII. Let's print it directly.)

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by yixiangzhike (Updated the item)
  • -email is unavailable- added by ametzler (Submitted the item)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    History

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-08-28 yixiangzhike Attached File- Added fix-find-ls-output-not-as-expected.patch, #57584

    Back to the top

    Powered by Savane 3.16.
    Corresponding source code