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: Sat, 02 Feb 2008 15:18:56 +0100 Message-ID: <87hcgr5tm7.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 1201961449 19970 80.91.229.12 (2 Feb 2008 14:10:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Feb 2008 14:10:49 +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 Sat Feb 02 15:11:10 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 1JLJ5K-0007qZ-IM for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Feb 2008 15:11:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLJ4s-0006vc-O2 for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Feb 2008 09:10:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JLJ4a-0006vC-Iz for help-gnu-emacs@gnu.org; Sat, 02 Feb 2008 09:10:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JLJ4Y-0006uz-O9 for help-gnu-emacs@gnu.org; Sat, 02 Feb 2008 09:10:23 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLJ4Y-0006uw-I7 for help-gnu-emacs@gnu.org; Sat, 02 Feb 2008 09:10:22 -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 1JLJ4W-0005mc-7c for help-gnu-emacs@gnu.org; Sat, 02 Feb 2008 09:10:22 -0500 Original-Received: by fk-out-0910.google.com with SMTP id 26so1394505fkx.10 for ; Sat, 02 Feb 2008 06:09:49 -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=ge7AyMNQ1BaTyqGvm6Hgmd/U2Ct9c6TwFD/Ki9FssP8=; b=dvM8V5vZxP28VR79aqzmvFl3oVFU+qJ1wtfrOf22MUjajUvnqwALR55BgrZdOl6Qk/anl0jTTfCAjQ43DoRJCrt02cuXcBtJHNpTCOk0w6HQfqkZIxaAKaG6FWCD8g/0Ev5eZm6EYUinVPJ2Nu+892bKa7cKL70oGrePEBM0SBE= 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=cznMbCFYPI2oVml0Ok5m1feFaB0eBMIIv6Oz8faR3OGuPus9EPBoPuUE+rukzUeLqdkaZ9occclyjUCy6nH/OF4qtUSh7w8vrKn6HD5SvjjZXnWF7ncnwLTI43QpSY7xE+OGLmUQ3CBYng3UASa5+o1uh1hxBjlQJi/GxZ1jps0= Original-Received: by 10.78.138.6 with SMTP id l6mr8394863hud.32.1201961388826; Sat, 02 Feb 2008 06:09:48 -0800 (PST) Original-Received: from thievol.homelinux.org ( [78.114.26.41]) by mx.google.com with ESMTPS id y37sm1078405mug.19.2008.02.02.06.09.46 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 02 Feb 2008 06:09:47 -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:51171 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. As you warn me at the start of this post, i have strange effect with this regex: when i do tar command i have a prompt like "tar: " when i launch a script python with some raw-input, in a python-shell (ipython) the prompt is hidden like a password. So i tried to modify the regex again: I can have a prompt for su correct but always with side effects on some other commands. I think the best should be modifying bash to avoid this stupid "Mot de passe : " and have a normal "Password: " without modifying the locale env variables. But i don't know where i can modify that for the moment. If emacs is started with LC_ALL=C the prompt is "Password: " Thats a way to do but some errors can appear on french files(not sure) -- A + Thierry Pub key: http://pgp.mit.edu