From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Bug in some calls to split-string. Date: Fri, 19 Jul 2013 15:09:59 -0400 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: plane.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1374261003 5340 80.91.229.3 (19 Jul 2013 19:10:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Jul 2013 19:10:03 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 19 21:10:07 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V0G46-0007Bb-Mx for ged-emacs-devel@m.gmane.org; Fri, 19 Jul 2013 21:10:06 +0200 Original-Received: from localhost ([::1]:46225 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0G46-0001sD-4j for ged-emacs-devel@m.gmane.org; Fri, 19 Jul 2013 15:10:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44187) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0G41-0001qU-BX for emacs-devel@gnu.org; Fri, 19 Jul 2013 15:10:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V0G40-0000EP-EV for emacs-devel@gnu.org; Fri, 19 Jul 2013 15:10:01 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0G40-0000EL-Bh for emacs-devel@gnu.org; Fri, 19 Jul 2013 15:10:00 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1V0G3z-0006Tb-KN; Fri, 19 Jul 2013 15:09:59 -0400 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:162024 Archived-At: [ 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.