From owner-freebsd-questions@freebsd.org Thu Jul 23 12:16:02 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B65DB9A87F7 for ; Thu, 23 Jul 2015 12:16:02 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7D3D41F4F for ; Thu, 23 Jul 2015 12:16:01 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-74-114.dynamic.qsc.de [92.195.74.114]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 4E3C83CD91; Thu, 23 Jul 2015 14:15:58 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t6NCFvEX001927; Thu, 23 Jul 2015 14:15:57 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 23 Jul 2015 14:15:57 +0200 From: Polytropon To: David Benfell Cc: freebsd-questions@freebsd.org Subject: Re: a couple of minor but annoying issues: mate-terminal and firefox Message-Id: <20150723141557.d943b953.freebsd@edvax.de> In-Reply-To: <20150722201116.Horde._Fra3QBcrvZHU_pB9keBlwC@mail.parts-unknown.org> References: <20150722181114.Horde.CZ2ks0U4JAR-nKAr2SXroZz@mail.parts-unknown.org> <20150723033718.3539c5be.freebsd@edvax.de> <20150722201116.Horde._Fra3QBcrvZHU_pB9keBlwC@mail.parts-unknown.org> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jul 2015 12:16:02 -0000 On Wed, 22 Jul 2015 20:11:16 -0700, David Benfell wrote: > Quoting Polytropon : > > > On Wed, 22 Jul 2015 18:11:14 -0700, David Benfell wrote: > >> First, mate-terminal keeps coming up with a default encoding of ASCII. > >> I want UTF-8. Desperately. The menu option is there and works, but the > >> default is wrong. I don't ever want ASCII. I always want UTF-8. Having > >> to remember to change this every single time is annoying. > > > > Set the environmental variables LC_ALL, maybe LANG, and MM_CHARSET > > to "en_US.UTF-8". You can do that via your ~/.cshrc or ~/.login_conf. > > In my case, I think .zshrc (I settled on zsh over a decade ago). If zsh is your login shell (and all X programs are somewhat "descendants" of that shell), this will work. My login shell is the C shell, and I have set LC_* globally for all accounts. Also note that there's a certain "precedence" of the LC_* "fine grained" variables and LANG. > I set > all of the above, restarted my X session, and that seems to have > worked. I had LANG set by way of /etc/login.conf, so I'm guessing that > mate-terminal responds either to LC_ALL or MM_CHARSET. If I remember correctly, LANG will be ignored if LC_ALL is set. Or was it the other way round? I remember that setting LC_ALL allowed UTF-8 for regular UTF-8-capable programs, but I think inside Gnome (and Gnome-derived Mate) MM_CHARSET is important. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...