From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: agenda csv export: three problems (batch, koi8-r and commas) Date: Thu, 31 May 2007 16:41:59 +0200 Message-ID: <8f7816b4f31abdefe0451c40fd789d52@science.uva.nl> References: <87y7j51h4a.fsf@kosolapov-nb.plesk.ru> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Htlql-0002Pn-7T for emacs-orgmode@gnu.org; Thu, 31 May 2007 10:42:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Htlqi-0002Pb-PK for emacs-orgmode@gnu.org; Thu, 31 May 2007 10:42:01 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Htlqi-0002PY-Kw for emacs-orgmode@gnu.org; Thu, 31 May 2007 10:42:00 -0400 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Htlqi-0006qe-90 for emacs-orgmode@gnu.org; Thu, 31 May 2007 10:42:00 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Jason F. McBrayer" Cc: Ruslan Kosolapov , emacs-orgmode@gnu.org On May 31, 2007, at 14:27, Jason F. McBrayer wrote: > Ruslan Kosolapov writes: > >> org-mode 4.75, emacs-snapshot (latest from debian sid) >> --[ 3. Problems with , and "" ]-- >> >> As far as I know, strings in csv should be quoted, else there will be >> problems if string contains comma. >> >> Now I see than "head" field placed in csv without quotes. So, if I >> use comma in heading text, csv-parsing script fails. >> > > I wondered about this immediately after csv agenda export was added, > so I tested it. My testing showed that commas in headlines are > converted to semicolon on export (it must be getting done earlier in > the code than where you looked at it being placed in the csv). > Probably not The Right Thing, but good enough, and surely easier than > worrying about quoting. Exactly. Of course fancier stuff could be done, but I guess this easy thing is still the best. - Carsten