From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: :alnum: broken? Date: Fri, 21 Feb 2020 10:58:26 -0800 Message-ID: <86wo8flqct.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="56729"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (windows-nt) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 21 19:59:20 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j5DWC-000Ecy-I7 for ged-emacs-devel@m.gmane-mx.org; Fri, 21 Feb 2020 19:59:20 +0100 Original-Received: from localhost ([::1]:35182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5DWB-0000cV-Is for ged-emacs-devel@m.gmane-mx.org; Fri, 21 Feb 2020 13:59:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53900) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5DVj-0000Cv-FH for emacs-devel@gnu.org; Fri, 21 Feb 2020 13:58:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5DVi-0005qB-0D for emacs-devel@gnu.org; Fri, 21 Feb 2020 13:58:50 -0500 Original-Received: from gateway23.websitewelcome.com ([192.185.50.129]:17408) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j5DVh-0005k1-Kc for emacs-devel@gnu.org; Fri, 21 Feb 2020 13:58:49 -0500 Original-Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway23.websitewelcome.com (Postfix) with ESMTP id CFDCD1038B for ; Fri, 21 Feb 2020 12:58:28 -0600 (CST) Original-Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with SMTP id 5DVMjCDYOXVkQ5DVMjYWjY; Fri, 21 Feb 2020 12:58:28 -0600 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stephe-leake.org; s=default; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2Are452NJZTN+KgU79iM/tdACZxeCyqO9wnsX5hFE8E=; b=gfk1ZBwRnCkrWTMK1efG8DsnYb T+yfboktO1S2OpwjafQqF9XYqSc9yd2KCGxEAYBSvwZnWeekzwyrDSFQbPKVMks0cquzaG8+izTUi GSxvaAtzX0QEWL1W3VQLnV7yIf0W3CGWJp+0JUOF+tGDxSKIlcrPoy/hui5lJhxbPIZZNKJI1/l2g Wu+OqRQHkHdX6JWNmOIwy1UOBDj0pp39+ivafhEltV9T4ZbIbcn8/2CsPKMIbNGmsnIdg0HrnqI1Y 95yqdFL3f97gWtV20ByQLS99g8MKmcLTI/g5mOXWosFTnJSYwQLHs5da3vkIelIG4QX+UIKCV8aZ3 yXRepGbA==; Original-Received: from [76.77.182.20] (port=52316 helo=Takver4) by host2007.hostmonster.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1j5DVM-003Pm6-5i for emacs-devel@gnu.org; Fri, 21 Feb 2020 11:58:28 -0700 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2007.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 76.77.182.20 X-Source-L: No X-Exim-ID: 1j5DVM-003Pm6-5i X-Source-Sender: (Takver4) [76.77.182.20]:52316 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 6 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 192.185.50.129 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245019 Archived-At: I'm attempting to generalize the regular expressions in ada-mode to handle utf-8; some are currently limited to ASCII. However, :alnum: appears to be broken: (let ((text "01abCDE") res1 res2) (string-match "[:alnum:]+" text) (setq res1 (match-string 0 text)) (string-match "[0-9a-zA-Z]+" text) (setq res2 (match-string 0 text)) (list res1 res2)) gives: ("a" "01abCDE") I'm running emacs master on Windows 8 x64. I'm guessing this might be affected by the font: (frame-parameter nil 'font) reports: "-raster-Courier-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1" On the other hand, running in a Debian testing VM on the same machine gives the same results, and the font is "-PfEd-DejaVu Sans Mono-normal-normal-normal-*-11-*-*-*-m-0-iso10646-1" What am I missing? -- -- Stephe