From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: Mysterious hidden end of line characters. Date: Mon, 04 Feb 2008 14:00:01 +0100 Message-ID: <87ejbsyizy.fsf@thievol.homelinux.org> References: <20080126171451.GB20762@univ-fcomte.fr> <6437D39B-1CA5-4BEA-9A6B-09A208114800@Web.DE> <871w7yms5p.fsf@lion.rapttech.com.au> <87bq72b8ko.fsf@thievol.homelinux.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202129474 27755 80.91.229.12 (4 Feb 2008 12:51:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Feb 2008 12:51:14 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 04 13:51:35 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JM0nN-0007hS-4F for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Feb 2008 13:51:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JM0mv-0001Um-44 for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Feb 2008 07:51:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JM0md-0001UA-3o for help-gnu-emacs@gnu.org; Mon, 04 Feb 2008 07:50:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JM0mb-0001SD-Jt for help-gnu-emacs@gnu.org; Mon, 04 Feb 2008 07:50:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JM0mb-0001S6-H5 for help-gnu-emacs@gnu.org; Mon, 04 Feb 2008 07:50:45 -0500 Original-Received: from fk-out-0910.google.com ([209.85.128.184]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JM0mb-0002lR-6P for help-gnu-emacs@gnu.org; Mon, 04 Feb 2008 07:50:45 -0500 Original-Received: by fk-out-0910.google.com with SMTP id 26so1977944fkx.10 for ; Mon, 04 Feb 2008 04:50:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=vM+MuChDW6Y8yAz58LCoup4QUCV7o3PSeHWNxwMOAJo=; b=gkYhzieGuR4MHKsSkm4CIh1YtLy6BOaMwoZ7j3h/zS2k8iCqAGLel4+cU9V8e82TpewWJIBDxz6llDT//IBmNejZnAVE8jz7Sb66hyd+fO23+u/0NGyZ/4GgiYge5Plw0a8h2icgzUGi6IMf+LgeA+3KL3KU6PxO5Jc/1arQhZk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=sPqtshmwG+yMymutDAZzyad0HUyNnYQPZq8Z+Th7WZ/UnRwXBRxl549YOTM/aJFWbuU9Mx3+4MpvAmYdpueHPW3ISpsWzrfr4KCsz4O41/vQGeIKv+5ong+3bYzhV076oQtPtu4vJ/JLCTQurhTg5OhdqUByGi93fQP+KG+v1bU= Original-Received: by 10.82.167.5 with SMTP id p5mr13008415bue.2.1202129443696; Mon, 04 Feb 2008 04:50:43 -0800 (PST) Original-Received: from thievol.homelinux.org ( [79.81.66.83]) by mx.google.com with ESMTPS id u26sm5117294mug.17.2008.02.04.04.50.41 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Feb 2008 04:50:42 -0800 (PST) In-Reply-To: (Peter Dyballa's message of "Thu, 31 Jan 2008 12:17:59 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51194 Archived-At: Peter Dyballa writes: > Am 31.01.2008 um 11:20 schrieb Thierry Volpiatto: > >> The problem is when locale is french or else maybe, the regex that >> match "Mot de passe :" don't exist. > > Could be this works: > > "\\(\\(\\(Enter \\|[Oo]ld \\|[Nn]ew \\|'s \\|login \\|Kerberos > \\| > CVS \\|UNIX \\| SMB \\|LDAP \\|\\[sudo] \\|^\\)[Pp]assword\\( (again)\ > \)?\\|pass phrase\\|\\(Enter \\|Repeat \\|Bad \\)?[Pp]assphrase\\)\\ > (?:, try again\\)\\|Mot de passe \\)?\\(?: for [^:]+\\)?:\\s *\\'" > > > It's a very complicated structure that takes into account that you > might fail to enter correctly a Kerberos, or CVS, or SMB, or LDAP > password, some pass phrase, and I don't know what else. > > Forgetting all this troublesome stuff, just describe another option > > \\|Mot de passe > > with a final SPC that is then followed by > > ?\\(?: for [^:]+\\) > > so you have to put everything before this expression into a froup with > \\(...\\). Or this is more correct? > > "\\(\\(\\(Enter \\|[Oo]ld \\|[Nn]ew \\|'s \\|login \\|Kerberos > \\| > CVS \\|UNIX \\| SMB \\|LDAP \\|\\[sudo] \\|^\\)[Pp]assword\\( (again)\ > \)?\\|pass phrase\\|\\(Enter \\|Repeat \\|Bad \\)?[Pp]assphrase\\)\\ > (?:, try again\\)?\\(?: for [^:]+\\)\\|Mot de passe \\)?:\\s *\\'" > > Mostly guessing, not completely understanding. Finally, i found the best solution, without modifying the regex: Just set in .bashrc an alias ==> alias su="LC_ALL su -l" Like that the prompt is password, is hidden and when you are root, if you do echo $LC_ALL, the env variable is unchanged (-l option of su) fr_FR.UTF-8 for me. Thats much more safe than modifying the comint regex. -- A + Thierry Pub key: http://pgp.mit.edu