From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Wells Newsgroups: gmane.emacs.bugs Subject: (split-string-and-unquote (combine-and-quote-strings STRINGS)) fails on trivial case Date: Tue, 01 Apr 2008 02:17:23 +0100 Message-ID: <86od8u8jbw.fsf@macs.hw.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207012693 17150 80.91.229.12 (1 Apr 2008 01:18:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Apr 2008 01:18:13 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 01 03:18:45 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JgV9A-0002Q2-Po for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Apr 2008 03:18:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JgV8Y-0000Ed-O4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 31 Mar 2008 21:18:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JgV7t-0008L8-O9 for bug-gnu-emacs@gnu.org; Mon, 31 Mar 2008 21:17:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JgV7s-0008JQ-AC for bug-gnu-emacs@gnu.org; Mon, 31 Mar 2008 21:17:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JgV7r-0008JF-Td for bug-gnu-emacs@gnu.org; Mon, 31 Mar 2008 21:17:23 -0400 Original-Received: from mail-r.hw.ac.uk ([137.195.101.215]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JgV7r-0001ra-KI for bug-gnu-emacs@gnu.org; Mon, 31 Mar 2008 21:17:23 -0400 Original-Received: from izanami.macs.hw.ac.uk ([137.195.13.6]) by mail-r.hw.ac.uk with esmtp (Exim 4.54) id 1JgV7i-0005l3-9b for bug-gnu-emacs@gnu.org; Tue, 01 Apr 2008 02:17:14 +0100 Original-Received: from lxultra1.macs.hw.ac.uk ([137.195.27.173]:45622 helo=127.0.0.1) by izanami.macs.hw.ac.uk with smtp (Exim 4.51) id 1JgV7i-0006KJ-01 for bug-gnu-emacs@gnu.org; Tue, 01 Apr 2008 02:17:14 +0100 Original-Received: (nullmailer pid 9793 invoked by uid 1001); Tue, 01 Apr 2008 01:17:23 -0000 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-HW-MailScanner-Information: Please contact the HW Helpdesk for more information X-HW-MailScanner: Found to be clean X-HW-MailScanner-SpamCheck: not spam, SpamAssassin (score=-4.399, required 5, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -2.60) X-HW-MailScanner-From: jbw@macs.hw.ac.uk X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17774 Archived-At: The documentation strings for both split-string-and-unquote and combine-and-quote-strings state that they attempt to achieve this property: (split-string-and-unquote (combine-and-quote-strings strs)) == strs Here is a trivial case that they fail on; the following sexp wrongly evaluates to nil: (let ((l '("a b" "c"))) (equal l (split-string-and-unquote (combine-and-quote-strings l)))) I hope this problem report is helpful. Joe ====================================================================== In GNU Emacs 22.2.1 (i686-pc-linux-gnu, GTK+ Version 2.8.20) of 2008-04-01 on artemis Windowing system distributor `The X.Org Foundation', version 11.0.70000000 configured using `configure '--prefix=/home/jbw/local4' '--enable-debug' '--disable-nls' '--with-x-toolkit=gtk' 'CFLAGS=-O0 -g3 -ggdb -fno-crossjumping -DGLYPH_DEBUG=1'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: en_US.UTF-8 value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: jbw value of $LANG: nil locale-coding-system: utf-8 default-enable-multibyte-characters: t -- Heriot-Watt University is a Scottish charity registered under charity number SC000278