bugfindutils - Bugs: bug #46846, failure due to filename encoding...

 
 

bug #46846: failure due to filename encoding and locale on OSX

Submitted by:  Clarence Risher <sparr>
Submitted on:  Thu 07 Jan 2016 10:22:30 PM UTC  
 
Category: updatedbSeverity: 3 - Normal
Item Group: Wrong resultStatus: None
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Open/Closed: Open
Release: 4.4.2Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sat 09 Jan 2016 04:00:40 PM UTC, comment #2:

Having read the bug report you pointed to, I'll be a bit more explicit: yes, I confirm that this is a bug in the updatedb script. The fix you suggest is appropriate.

James Youngman <jay>
Project AdministratorIn charge of this item.
Sat 09 Jan 2016 03:58:50 PM UTC, comment #1:

Your workaround seems like a good idea to me. Thanks. File path names are not actually text, anyway (since there is no mechanism to enforce any constraint that the basename of a subdirectory has the same character encoding as the basename of its parent).

FWIW, the current stable release is 4.6.0 (though it is likely affected by the same problem you're reporting).

James Youngman <jay>
Project AdministratorIn charge of this item.
Thu 07 Jan 2016 10:22:30 PM UTC, original submission:

I've installed updatedb via Homebrew and encountered this problem:

$ sudo updatedb
/usr/bin/sort: string comparison failed: Illegal byte sequence
/usr/bin/sort: Set LC_ALL='C' to work around the problem.
/usr/bin/sort: The strings compared were `/LIBRARY/FONTS/ō\216Ɩ\207ǻ\206ɻ\221.TTF' and `/LIBRARY/FONTS/ō\216Ɩ\207ɻ\221Ľ\223.TTF'.

here are some possibly valid environment settings:

$ locale
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=
$ env | egrep '^(LANG=|LC_)' | sort
LANG=en_US.UTF-8

downstream report: https://github.com/Homebrew/homebrew/issues/47791

my temporary workaround is to just `export LC_ALL="C"` at the top of the updatedb script

Clarence Risher <sparr>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jay (Posted a comment)
  • -unavailable- added by sparr (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 09 Jan 2016 03:58:50 PM UTCjayItem GroupNone=>Wrong result
      Assigned toNone=>jay

    Back to the top


    Powered by Savane 3.1-cleanup1