tr on OS X

Brandon Allbery allbery at
Fri Apr 2 22:08:06 PDT 2010

On Apr 3, 2010, at 00:31 , Scott Haneda wrote:
> If anyone can point me to a relevant thread, I would appreciate it.   
> I am working on a port and I keep getting a "tr: Illegal byte  
> sequence", which is no fault of MacPorts, but the answer to this may  
> lead me down the path of an explanation.

This is an I18N error.  If you're operating on binary data for some  
reason, you may want to force LANG=C so you don't get errors about  
illegal characters in the locale (in this case, it would almost  
certainly be UTF8 unless for some reason you're working in a CJK  
character set).

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at
system administrator [openafs,heimdal,too many hats] allbery at
electrical and computer engineering, carnegie mellon university    KF8NH

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the macports-users mailing list