From owner-freebsd-questions@FreeBSD.ORG Sun Dec 30 23:46:42 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0A1416A418 for ; Sun, 30 Dec 2007 23:46:42 +0000 (UTC) (envelope-from michael.grant@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7159313C459 for ; Sun, 30 Dec 2007 23:46:42 +0000 (UTC) (envelope-from michael.grant@gmail.com) Received: by py-out-1112.google.com with SMTP id u52so8777760pyb.10 for ; Sun, 30 Dec 2007 15:46:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=AARpbQdTEdnTfEsZsD1Y5hjViqqZgdhhGUVopmZrve0=; b=ZeuToze5xj1UbAb6Ea+0xQaMWmqWbc6hXlLkLspfVmgP3OSK4EXYwRlNaR693SzORalkVMV3EfzjILYf1i1ZfMwRSBLvckjDXrPAzzUSvWaa+9z8QEheS7ipTeKOFTUu7tGjqtfUHjI3nBrNi/Stkb+1/8SXKDjXqpSQVR6jq4w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=xaSTPslaO6Vack8eCR3SJ09sNbJMZ/UE0ZN2UO+2izQ4+8RzrFr+lZ6WTiVMjGCvvZeVfuxBiEaKZiz0D43rFGZKzIgr0SII1nCbBME3QVE5NvAURENTvch4j1DPXhwrEAbfl4jRhhgSvjWJxnFqmIY9WeFVQb/Jwb/dgHWiEvU= Received: by 10.65.156.2 with SMTP id i2mr23569704qbo.60.1199058401083; Sun, 30 Dec 2007 15:46:41 -0800 (PST) Received: by 10.65.93.10 with HTTP; Sun, 30 Dec 2007 15:46:41 -0800 (PST) Message-ID: <62b856460712301546w17870914lf795e67ef65bb33a@mail.gmail.com> Date: Mon, 31 Dec 2007 00:46:41 +0100 From: "Michael Grant" Sender: michael.grant@gmail.com To: "FreeBSD Questions" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 4a3e19257edfe343 Subject: bash and $LANG and meta-key bindings X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Dec 2007 23:46:42 -0000 I upgraded from 6.2 to 6.3-prerelease and I noticed something very strange with bash (or perhaps readline). I have had for many hears this in my .bash_login: export LANG=en_US.ISO8859-15 This makes 8-bit characters come out as accented characters instead of character codes like . However, with the upgrade to 6.3pre, something has changed. Same bash binary. If I set $LANG like this, certain meta-bindings like this do not work: bind '"\M-p": history-search-backward' bind '"\M-n": history-search-forward' Before the upgrade, m-p would go to the previous command or the previous command like the one that was partially typed in. Now, it produces a : prompt. If I remove the LANG setting from my .bash_login, it works fine. So either I can have proper accented characters or I can have working meta key bindings with bash (and readline), but not both. Anyone know of a fix for this? Am I setting LANG in the wrong place? I have tried putting these bindings into my .inputrc but that didn't help. Michael Grant