From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#73307: Fix ctype(3) usage Date: Wed, 18 Sep 2024 19:11:02 +0300 Message-ID: <86ldzp9c2x.fsf@gnu.org> References: <86r09ibiq3.fsf@gnu.org> <89deb908-92a6-489f-bab9-116556ce8ce4@cs.ucla.edu> <86r09h9odm.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32697"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 73307@debbugs.gnu.org, wiz@gatalith.at, monnier@iro.umontreal.ca To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 18 18:12:08 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1sqxHj-0008Kv-Jo for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Sep 2024 18:12:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqxHW-0000g6-K3; Wed, 18 Sep 2024 12:11:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sqxHO-0000fM-Lu for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2024 12:11:46 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sqxHO-0003Dq-DK for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2024 12:11:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=NnCOqkOIoLi4qPLYrnl5yfDs+A28PK8mCfxctsO17Qs=; b=iY0m0lCIha+0xs/3RySbI2z+mVP3CIdDeVcFEhevxiB4EMe10Oe88hxMJdSUbRi37Y8ejz0F/apLCtCr2SQgFtK8I4AYP4SoGdluik0K+96Va6jqAY+HVEasg1WjyH+1tm+f3aEAvYtiJZqr0ctq2SPTc1Ly1cOHlJFxDrd5EwPTKzYyrnAw/MrCHxYB/34DnyUNMs451zpho4/BrSlwPyBS3Fe2hTUO2mgWMGL1pNppNlbNEwfz9OSj0bypPfSuJjIfPLhLaW7UFfu6Vv01Ql3uws4CdRiD1+88BK/0+85VpZZMDgJjsX5ZlXGF6x/6LvwEjUZJwwdkkenJDrUIeA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sqxHe-0005S5-Iw for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2024 12:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Sep 2024 16:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73307 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 73307-submit@debbugs.gnu.org id=B73307.172667589020903 (code B ref 73307); Wed, 18 Sep 2024 16:12:02 +0000 Original-Received: (at 73307) by debbugs.gnu.org; 18 Sep 2024 16:11:30 +0000 Original-Received: from localhost ([127.0.0.1]:59190 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqxH8-0005R5-JK for submit@debbugs.gnu.org; Wed, 18 Sep 2024 12:11:30 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqxH6-0005Qr-IY for 73307@debbugs.gnu.org; Wed, 18 Sep 2024 12:11:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sqxGj-0003BB-3a; Wed, 18 Sep 2024 12:11:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=NnCOqkOIoLi4qPLYrnl5yfDs+A28PK8mCfxctsO17Qs=; b=LMhPMFDwjK/h a3L1MPOzNVRF7+/kMOGUXquXp9HZVW5B9tzOJbgMhwC10e8/OebE7i24z6hCSl7evmtrHlLnht96o PppB6xa3BBSiuNgzfxv+mKSl+eK8uSVejJkEfbX7HPuPOVVWDqRXyRIytPtl2eFqQvaYVli68STrC LOYMkADISmW6XAUKlhgjpQACVbd03JuElyjeQiURj2vuvbXptMBnn5mVaCycMQF6BmymlQ8YtVZDB VznTJSmd/5LF+ffy+BehnNW4mkh5yk4+jSE0FtYdrorp3LswxIkbkIQ8ncuShs4Ly1wqgP9eG0p3T 8dNg61TVhoQ4DyjmXp3OwA==; In-Reply-To: (message from Paul Eggert on Wed, 18 Sep 2024 08:35:18 -0700) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292013 Archived-At: > Date: Wed, 18 Sep 2024 08:35:18 -0700 > Cc: 73307@debbugs.gnu.org, wiz@gatalith.at, luangruo@yahoo.com > From: Paul Eggert > > > You are testing characters for whitespace syntax, which is AFAIU > > subject to buffer-local syntax tables. > > Thanks, I didn't think of that. How about the attached patch? It is an > alternative to just using c_isspace. That's much better, thanks. But I'm not sure we really want to allow any Zs character there. For example, what about U+3000 IDEOGRAPHIC SPACE? But if this is okay with us, please install.