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: Thu, 31 Jan 2008 17:04:47 +0100 Message-ID: <87lk662d7k.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=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1201795594 19273 80.91.229.12 (31 Jan 2008 16:06:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jan 2008 16:06:34 +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 Thu Jan 31 17:06:54 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 1JKbwA-0002od-PY for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jan 2008 17:06:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKbvj-0003JI-CC for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jan 2008 11:06:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKblZ-0007Kq-Er for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 10:55:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKblY-0007KT-TF for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 10:55:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKblY-0007KM-Me for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 10:55:52 -0500 Original-Received: from fg-out-1718.google.com ([72.14.220.154]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JKblY-0001ec-3W for help-gnu-emacs@gnu.org; Thu, 31 Jan 2008 10:55:52 -0500 Original-Received: by fg-out-1718.google.com with SMTP id d23so724361fga.30 for ; Thu, 31 Jan 2008 07:55:50 -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:content-transfer-encoding; bh=FtvQHA/EqJzczteoisVeAk0yYjafbbm5jBzk2wscjus=; b=AtSDHrZaRRF+ts/h0tK+LZMr8WoEXccV/s145wGXdjsnQEQunBb9CjoohbKC1CbWcqaMmsAdYtMIyEzi1w6OlcPnmWZn13gxgdx18OrGSktcQpl4VdpPJqZ3l/xIIGYAsB0hQszfwkk0Ch69vvV1jF9TrNQA669u9px9ce14s5w= 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:content-transfer-encoding; b=Fl6Ww21KUJH+cMnBA9I/aPClthY3LfJVrpyq+sgkwC52o7SImfNXgjnka1wPfE1HXkEOF1RCFrFgKJWyd4ZPuvn8ulbFsw2csCEAAVUlpMjscQqz0StFZ8FF25IEJOgz+d6mljwPf1GttCwq3ttapxJVy7FoDSxcNzOuzoRgQ1Y= Original-Received: by 10.82.138.6 with SMTP id l6mr4059316bud.13.1201794950630; Thu, 31 Jan 2008 07:55:50 -0800 (PST) Original-Received: from thievol.homelinux.org ( [78.114.26.41]) by mx.google.com with ESMTPS id 13sm4812869fks.8.2008.01.31.07.55.48 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 31 Jan 2008 07:55:49 -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:51128 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. Not working for the moment, i keep trying. What i find is that Mot de passe_: is=20 Mot de passe.: Here is the describe of the character: character: =C2=A0 (160, #o240, #xa0) preferred charset: iso-8859-1 (Latin-1 (ISO/IEC 8859-1)) code point: 0xA0 syntax: . which means: punctuation category: b:Arabic j:Japanese l:Latin buffer code: #xC2 #xA0 file code: #xC2 #xA0 (encoded by coding system utf-8) display: by this font (glyph code) courier:pixelsize=3D14:foundry=3Dadobe:weight=3Dbold:slant=3Dr:width= =3Dnormal (#x61) hardcoded face: nobreak-space Character code properties are not shown: customize what to show There is an overlay here: From 1 to 17 face regex-tool-matched-face \([Mot de passe]*.*:*[blank]?\) that regex work in regex-tool but don't work in the whole regexp --=20 A + Thierry Pub key: http://pgp.mit.edu