[MacPorts] #35420: p5-crypt-passwdmd5: sed: RE error: illegal byte sequence

MacPorts noreply at macports.org
Fri Aug 17 14:26:25 PDT 2012


#35420: p5-crypt-passwdmd5: sed: RE error: illegal byte sequence
--------------------------+-------------------------------------------------
 Reporter:  ak@…          |       Owner:  ooburai@…         
     Type:  defect        |      Status:  new               
 Priority:  Normal        |   Milestone:                    
Component:  ports         |     Version:  2.1.2             
 Keywords:  mountainlion  |        Port:  p5-crypt-passwdmd5
--------------------------+-------------------------------------------------

Comment(by nick@…):

 According to https://github.com/Homebrew/homebrew-dupes/pull/21 and linked
 pages, the problem is Mountain Lion specific and has to do with locale
 settings and improper handling of these in sed. You have to unset LANG
 and/or set LC_CTYPE=C and/or LC_ALL=C.

 {{{
 sudo env ... port install ...
 }}}
 did not work for me. However, moving /usr/bin/sed to /usr/bin/sed2 and
 adding the following executable script /usr/bin/sed

 {{{
 #!/bin/sh

 unset LANG
 LC_CTYPE=C
 LC_ALL=C
 export LC_CTYPE LC_ALL

 /usr/bin/sed2 "$@"
 }}}

 makes the port install.

-- 
Ticket URL: <https://trac.macports.org/ticket/35420#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list