From owner-freebsd-rc@FreeBSD.ORG Fri Feb 9 01:21:02 2007 Return-Path: X-Original-To: rc@freebsd.org Delivered-To: freebsd-rc@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9B33716A400 for ; Fri, 9 Feb 2007 01:21:02 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id 376E613C46B for ; Fri, 9 Feb 2007 01:21:02 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so598832uge for ; Thu, 08 Feb 2007 17:21:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=OG7tyNsv0Xf8ZdZ/SOfl0Fyj4E3U/5Q+4mGuwC3KUvGLwmZjE1c4+7IabB8S5IewS6E58un/z9jkU/TryWAJZRSmNR1hnq9zZW/V2JtRfjER7+wRu7vsn/6OQaI1DN7IO+0VavA4nggZ7jODv3qVj40bivLJvVU7n1s9LrL+qzo= Received: by 10.78.166.7 with SMTP id o7mr4744182hue.1170984061055; Thu, 08 Feb 2007 17:21:01 -0800 (PST) Received: by 10.78.164.20 with HTTP; Thu, 8 Feb 2007 17:21:01 -0800 (PST) Message-ID: Date: Fri, 9 Feb 2007 04:21:01 +0300 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: "Florent Thoumie" In-Reply-To: <45CBBE8A.4030901@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45B36737.6080208@FreeBSD.org> <45B3A899.2060207@FreeBSD.org> <45CBBE8A.4030901@FreeBSD.org> X-Google-Sender-Auth: 0888b6e981095873 Cc: rc@freebsd.org Subject: Re: Service-specific default locales X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Feb 2007 01:21:02 -0000 On 2/9/07, Florent Thoumie wrote: > Florent Thoumie wrote: > > Florent Thoumie wrote: > >> Andrew Pantyukhin wrote: > >>> I need to run different services in different locales > >>> (basically LANG/LC_ALL changed). Before I look at how > >>> to implement it, is there any objection to > >>> _locale presetting the two variables to its > >>> value (and possibly some error-checking via locale(1)? > >>> > >>> As for a site-wide default, I currently have "export > >>> LANG=en_US.UTF-8" in my rc.conf. Should we introduce > >>> a general "locale" variable for this? > >> Makes sense to me. Have a look at *_nice variable for example. > > > > Thinking about it, maybe something like _env would be better > > (cause more generic). Of course you wouldn't be able to do error > > checking but I'm not sure it's so useful anyway. > > Any update on that, do you need help or something? I solved my immediate problem through hacks even before posting here, so a good implementation is not exactly at the top of my todo list. I'll be happy to see it done by someone else, otherwise I'll get to it myself later.