From owner-freebsd-bugs@FreeBSD.ORG Sat Aug 25 14:24:10 2012 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 073121065670 for ; Sat, 25 Aug 2012 14:24:10 +0000 (UTC) (envelope-from sdaoden@gmail.com) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx1.freebsd.org (Postfix) with ESMTP id 855E08FC12 for ; Sat, 25 Aug 2012 14:24:09 +0000 (UTC) Received: by wicr5 with SMTP id r5so1522050wic.13 for ; Sat, 25 Aug 2012 07:24:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:in-reply-to :user-agent:mime-version:content-type:content-transfer-encoding; bh=Vu5kArpJJCsyFpERtyRtWz2RblxATBdHt+Hq/aHBIUE=; b=SgqF8dPNdZIPoS9qm5hk3GJmEkqOVqC18QSMdgMczzphFB41g/VhZctC6pg3Moy9cJ shEQ6Hkoys4Sxetb3nlkjcDUutJPK9PanI6ZtfveOYtazYBEM8hv5Yhs7Mk2KHdKttph 4UnI4njRuGmgsurw7swOqysLiOfvCus7D0V/0T0LVfvuTx2sf2EB0R2qSil1iPRF3Qw0 JiM0FxarsaIqSOsXPFP9YzLcgAB+tyfZJGsDfccchdDPEP07aIQYjSo4SxdzLqK+/VSs k6/BNQIrw7lIEVas0CPHXlKrzq2vuTv05cGs6hafhRg/UBzP5xOyDtHbHxUgrvUOnyoY PjfQ== Received: by 10.216.234.100 with SMTP id r78mr4143525weq.107.1345904648263; Sat, 25 Aug 2012 07:24:08 -0700 (PDT) Received: from dietcurd.wild-life.local ([82.113.106.166]) by mx.google.com with ESMTPS id o2sm5211814wiz.11.2012.08.25.07.24.04 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 25 Aug 2012 07:24:07 -0700 (PDT) Date: Sat, 25 Aug 2012 16:24:02 +0200 From: Steffen "Daode" Nurpmeso To: freebsd-bugs@freebsd.org Message-ID: <5038e002.QK5/RZfJHkeD9ynWYPmTG13O@dietcurd.wild-life.local> References: <201208192010.q7JKAB5F095228@freefall.freebsd.org> <50321e67.a9HQfbVt/xoOsHvAHBd/iFcc@dietcurd.wild-life.local> In-Reply-To: User-Agent: S-nail <12.5 7/5/10;s-nail-10-gfc0420c-dirty> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Mark Linimon , Eitan Adler Subject: Re: bin/170651: On 9.0-RELEASE#0 and master sh(1) gobbles high bit at first X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Aug 2012 14:24:10 -0000 Yes thanks, Mark Linimon told me almost the same in a private mail, but since it seems all those indeed ended up on the list, i guess it was a confidential mismatch ; I've finally found the solution to *my* problem: i did not uncomment my .login_conf and so the initial locale setting was C. Since all the five setlocale() calls that happen before the first prompt appears are actually performed before the sh(1) initialization scripts are loaded any environmental change on LANG and LC_* is not yet incorporated at that time. Stupid me, i only had to copy over the config file from my FreeBSD 5.3 config file repo, but forgot it. (First new in eight years, so i stepped slowly instead of doing a bunch cp(1).) So this is why my patch worked -- libedits map_init_nls() is evaluated again and the isprint(3) therein is true in the then updated locale. But this is not an issue with FreeBSDs sh(1) as this is supposed to work that way -- is it? I.e., prioritization of login.conf(5) against .profile (/.shrc). But anyway this is a different topic, here i was simply too stupid to get that right. So this PR can be closed by someone who can, and i'm rather sorry for the noise. Miau. --steffen