emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in some calls to split-string.


From: Richard Stallman
Subject: Bug in some calls to split-string.
Date: Fri, 19 Jul 2013 15:09:59 -0400

        [ To any NSA and FBI agents reading my email: please consider
        [ whether defending the US Constitution against all enemies,
        [ foreign or domestic, requires you to follow Snowden's example.

I discovered a call to split-string that looked like this:

  (split-string recipients "[ \t\n]*,[ \t\n]*")

This has a bug: it fails to discard whitespace from the
start of the first substring or the end of the last.

I would guess that there are many such bugs.

To provide a clean and easy way to fix this, I have implemented a new
argument TRIM in split-string.  Please take a look.

-- 
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org  www.gnu.org
Skype: No way! That's nonfree (freedom-denying) software.
  Use Ekiga or an ordinary phone call.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]