From owner-freebsd-stable@freebsd.org Mon Nov 7 23:12:36 2016 Return-Path: Delivered-To: freebsd-stable@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 A89BFC35602 for ; Mon, 7 Nov 2016 23:12:36 +0000 (UTC) (envelope-from Mark.Martinec+freebsd@ijs.si) Received: from mail.ijs.si (mail.ijs.si [IPv6:2001:1470:ff80::25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 62F656AE for ; Mon, 7 Nov 2016 23:12:36 +0000 (UTC) (envelope-from Mark.Martinec+freebsd@ijs.si) Received: from amavis-ori.ijs.si (localhost [IPv6:::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.ijs.si (Postfix) with ESMTPS id 3tCSrx4G2Sz9w for ; Tue, 8 Nov 2016 00:12:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ijs.si; h= user-agent:message-id:references:in-reply-to:organization :subject:subject:from:from:date:date:content-transfer-encoding :content-type:content-type:mime-version:received:received :received:received; s=jakla4; t=1478560350; x=1481152351; bh=eI7 dQQX+pbig4FdnFZKwPfku+Hhb4hQSHJ2HsHgbtKo=; b=CkZQONDhZhkSjFHy1X8 opSXJSGYsoaFtpFWoveEhdFbVIXD0zaKq3GRGDCiCto0kWRWrMVvFFKOCZGET8qD 3C3CECX+bNp/gCRUC1Yk8Vg4CudWtkKm8UVPy/6Yesx7QXewOzJK+xjYH7Mjv0YV PbvD7d2xzgAhA7/RuAzuF4YQ= X-Virus-Scanned: amavisd-new at ijs.si Received: from mail.ijs.si ([IPv6:::1]) by amavis-ori.ijs.si (mail.ijs.si [IPv6:::1]) (amavisd-new, port 10026) with LMTP id T_HEpcUpfiT3 for ; Tue, 8 Nov 2016 00:12:30 +0100 (CET) Received: from mildred.ijs.si (mailbox.ijs.si [IPv6:2001:1470:ff80::143:1]) by mail.ijs.si (Postfix) with ESMTP id 3tCSrt5j1bz9r for ; Tue, 8 Nov 2016 00:12:30 +0100 (CET) Received: from nabiralnik.ijs.si (nabiralnik.ijs.si [IPv6:2001:1470:ff80::80:16]) by mildred.ijs.si (Postfix) with ESMTP id 3tCSrt488Dz1Q1 for ; Tue, 8 Nov 2016 00:12:30 +0100 (CET) Received: from sleepy.ijs.si (2001:1470:ff80:e001::1:1) by webmail.ijs.si with HTTP (HTTP/1.1 POST); Tue, 08 Nov 2016 00:12:30 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 08 Nov 2016 00:12:30 +0100 From: Mark Martinec To: freebsd-stable@freebsd.org Subject: Re: Uppercase RE matching problems in FreeBSD 11 Organization: Jozef Stefan Institute In-Reply-To: References: <20161106110729.z2px7mzlhcwxvrvu@ivaldir.etoilebsd.net> <29451103-E8DB-4656-A5BB-AEB924A728D6@lassitu.de> <20161106210628.hg3dcpozfjtuo3nt@ivaldir.etoilebsd.net> <20161106212729.z2edg44kg7hc4r2z@ivaldir.etoilebsd.net> Message-ID: <9972d62886b5651b76aa7f594be5ad19@ijs.si> X-Sender: Mark.Martinec+freebsd@ijs.si User-Agent: Roundcube Webmail/1.2.2 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Nov 2016 23:12:36 -0000 2016-11-06 22:49, Stefan Bethke wrote: > So what do I set my LANG and LC variables to? I do want UTF-8, but I > do also want my scripts to continue to work. Clearly, en_US.UTF-8 is > not what I want. Is it C.UTF-8? > Or do I set LANG=en_US.UTF-8 and LC_COLLATE=C? Yes, that is the safest bet. The LANG sets a default, but the LC_COLLATE, LC_TIME, LC_NUMERIC and LC_MONETARY should better be set to "C" to overrule the LANG in their domains. Leave the LC_ALL undefined or empty, as this one overrules every other locale setting (unless you really want everything to be set to "C"). Mark