Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Jan 2014 20:49:36 +0000
From:      Steve Wills <swills@freebsd.org>
To:        marino@freebsd.org
Cc:        Marco Beishuizen <mbeis@xs4all.nl>, freebsd-ports@freebsd.org
Subject:   Re: how to install ruby18
Message-ID:  <20140104204933.GA55026@mouf.net>
In-Reply-To: <52C81E78.4020209@marino.st>
References:  <alpine.BSF.2.00.1401041517590.30757@localhost> <52C81A22.5030501@marino.st> <alpine.BSF.2.00.1401041529480.30757@localhost> <52C81E78.4020209@marino.st>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 04, 2014 at 03:45:12PM +0100, John Marino wrote:
> On 1/4/2014 15:38, Marco Beishuizen wrote:
> > On Sat, 4 Jan 2014, the wise John Marino wrote:
> > 
> > Portupgrade builds fine, but I have my locale set to UTF-8 and in that
> > case the pkgdb breaks and portupgrade no longer works:
> > 
> > ...
> > root@yokozuna:/home/marco# pkgdb -FfO
> > --->  Checking the package registry database
> > invalid byte sequence in UTF-8
> > ...
> > 
> > When the locale is set to the standard C the error changes to "invalid
> > byte sequence in US-ASCII".
> > 
> > I have this error for a very long time and after a lot of searching and
> > fiddling with the locale settings have no idea how to solve this.
> > 
> > Ruby18 worked fine so that would be the best option imo.
> 
> Ruby18 is gone forever, and unsupported, so that's not the best option.
> DragonFly had these same type errors with ruby19, until we redefined
> GEM_ENV in bsd.ruby.mk
> 
> -GEM_ENV?=                LC_CTYPE=UTF-8
> +GEM_ENV+=                LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
> 
> Maybe setting GEM_ENV in your make.conf and rebuilding all the ruby
> stuff would fix it for you too.  Shot in the dark.

I'm not sure this is the right solution. Most of those types of problems have
disappeared now that rdoc isn't a dependency. If you remove rubygem-rdoc, does
the problem go away?

Steve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140104204933.GA55026>