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

Andreas Metzler <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
URL:
  <https://savannah.gnu.org/bugs/?67135>

                 Summary: find -ls output is ASCII-only even in UTF-8 locales
                   Group: findutils
               Submitter: ametzler
               Submitted: Sa 17 Mai 2025 13:15:14 CEST
                Category: find
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name:
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.9.0
           Fixed Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sa 17 Mai 2025 13:15:14 CEST   By: Andreas Metzler <ametzler>
Hello,

this was originally reported as <https://bugs.debian.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







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?67135>

_______________________________________________
Nachricht gesendet über Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaChv1AAKCRCqLAuaBUf3
Tr1wAQDohFC9rh7Rq0YdWp90ywVEbAA1P34k9swG4vcVgPijywD/XH17Mn6guzma
Q/pPm48p+O/N/Jj6Ud8bpeXMnRM6fQE=
=qKU3
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.