From owner-freebsd-ports@FreeBSD.ORG Thu Jun 13 19:03:43 2013 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1B37693C for ; Thu, 13 Jun 2013 19:03:43 +0000 (UTC) (envelope-from adams-freebsd@ateamsystems.com) Received: from smtp157.dfw.emailsrvr.com (smtp157.dfw.emailsrvr.com [67.192.241.157]) by mx1.freebsd.org (Postfix) with ESMTP id E0C8C1E53 for ; Thu, 13 Jun 2013 19:03:42 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp25.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id AE1B92D0982 for ; Thu, 13 Jun 2013 15:03:41 -0400 (EDT) X-Virus-Scanned: OK Received: from smtp110.ord1c.emailsrvr.com (smtp110.ord1c.emailsrvr.com [108.166.43.110]) by smtp25.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTPS id 95A9B2D09F9 for ; Thu, 13 Jun 2013 15:03:41 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp6.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id E3735980BC; Thu, 13 Jun 2013 15:03:34 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp6.relay.ord1c.emailsrvr.com (Authenticated sender: adam.strohl-AT-ateamsystems.com) with ESMTPSA id 98164980A7; Thu, 13 Jun 2013 15:03:33 -0400 (EDT) Message-ID: <51BA1786.1090002@ateamsystems.com> Date: Fri, 14 Jun 2013 02:03:34 +0700 From: Adam Strohl User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Steve Wills Subject: Re: rubygem-nokogiri error: "\xE2" from ASCII-8BIT to UTF-8 References: <51BA024A.3040400@ateamsystems.com> <8b83d764333a13c3528e783c0fa1efdd.squirrel@mouf.net> In-Reply-To: <8b83d764333a13c3528e783c0fa1efdd.squirrel@mouf.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jun 2013 19:03:43 -0000 On 6/14/2013 1:10, Steve Wills wrote: >> Hello, >> >> I just attempted to upgrade Ruby & Redmine and one of the gems, >> nokogiri, (and a few others) die with the same "ASCII-8BIT to UTF-8" >> error durring the doc install phase which prevents the port from >> completing the install. >> >> I've searched and search and cannot find anything that relates to this >> specifically, anyone have any ideas? >> > > I've seen errors like this, although not with this specific port. I > haven't come up with a good solution yet, but often setting LC_LANG or > LANG or LC_ALL to en_us.utf-8 (or whatever is appropriate for you) helps. > FWIW, bsd.ruby.mk sets LC_CTYPE=UTF-8, but maybe it needs to set more. The > problem is it's generating docs and needs this, but we don't set a LANG by > default. > BINGO. Thank you both Michael Gmelin (who replied privately) and Steve. My defaults were C or blank when I ran "locale", and per both of your suggestions setting this let nokogiri build: export LANG="en_US.UTF-8"; export LC_ALL="en_US.UTF-8"; Awesomeness: Building native extensions. This could take a while... Successfully installed nokogiri-1.5.0 1 gem installed Installing RDoc documentation for nokogiri-1.5.0... ===> Registering installation for rubygem-nokogiri-1.5.0 I also want to note (in case anyone else searches for this) that rubygem-net-ldap port also had the same issue for me and this fixed that port as well. Thanks again! -- Adam Strohl http://www.ateamsystems.com/