unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: luangruo@yahoo.com, 73307@debbugs.gnu.org, wiz@gatalith.at,
	monnier@iro.umontreal.ca
Subject: bug#73307: Fix ctype(3) usage
Date: Wed, 18 Sep 2024 19:11:02 +0300	[thread overview]
Message-ID: <86ldzp9c2x.fsf@gnu.org> (raw)
In-Reply-To: <e00504dc-1fd7-4c72-8afc-04db8c6f572f@cs.ucla.edu> (message from Paul Eggert on Wed, 18 Sep 2024 08:35:18 -0700)

> Date: Wed, 18 Sep 2024 08:35:18 -0700
> Cc: 73307@debbugs.gnu.org, wiz@gatalith.at, luangruo@yahoo.com
> From: Paul Eggert <eggert@cs.ucla.edu>
> 
> > 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.





  reply	other threads:[~2024-09-18 16:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-16 21:25 bug#73307: Fix ctype(3) usage Thomas Klausner
2024-09-17 11:52 ` Eli Zaretskii
2024-09-17 11:55   ` Thomas Klausner
2024-09-18  0:05   ` Paul Eggert
2024-09-18  2:13     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-18 11:45     ` Eli Zaretskii
2024-09-18 15:18       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-18 15:35       ` Paul Eggert
2024-09-18 16:11         ` Eli Zaretskii [this message]
2024-09-18 16:22           ` Paul Eggert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86ldzp9c2x.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=73307@debbugs.gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=luangruo@yahoo.com \
    --cc=monnier@iro.umontreal.ca \
    --cc=wiz@gatalith.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).