From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Banel Subject: Re: babel: ob-C with Visual C++ and compilation-mode Date: Thu, 21 Aug 2014 21:48:51 +0200 Message-ID: <53F64D23.3030303@free.fr> References: <878un4ut6c.fsf@gmail.com> <53E91C32.4000002@free.fr> <87lhqt6b0w.fsf@gmail.com> <53EA8F2B.7010205@free.fr> <87zjf8cdjk.fsf@gmail.com> <53ED1EB0.3030500@free.fr> <87lhqp7jnp.fsf@gmail.com> <53F08FE3.20506@free.fr> <87vbpq6o4w.fsf@gmail.com> <53F25B1F.3020804@free.fr> <87sikqhp3j.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKYLv-0002wl-0w for emacs-orgmode@gnu.org; Thu, 21 Aug 2014 15:48:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKYLu-0001vb-48 for emacs-orgmode@gnu.org; Thu, 21 Aug 2014 15:48:54 -0400 Received: from smtp4-g21.free.fr ([2a01:e0c:1:1599::13]:37422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKYLt-0001vV-TD for emacs-orgmode@gnu.org; Thu, 21 Aug 2014 15:48:54 -0400 Received: from [IPv6:2a01:e35:2e21:def0:b41a:8974:3413:c7bf] (unknown [IPv6:2a01:e35:2e21:def0:b41a:8974:3413:c7bf]) by smtp4-g21.free.fr (Postfix) with ESMTP id 586314C808E for ; Thu, 21 Aug 2014 21:48:52 +0200 (CEST) In-Reply-To: <87sikqhp3j.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org
Le 20/08/2014 22:40, Ernesto Durante a écrit :

Another question if you allow me ?
Looking at code in Ob-C you transform a table/list variable in a C array
of char*. Should it not be std::wstring ? some unicode string ?

Best Ernesto

Absolutely!
Unicode is the way to go.
Of course, this should be handled carefully,
as the source org file is not guarantied to be in utf-8.

You may want to give it a try an provide a patch for that.
3 files are involved:
- lisp/ob-C.el (you know this one)
- testing/lisp/test-ob-C.el (to launch unit tests)
- testing/examples/ob-C-test.org (the unit tests themselves)
- worg/org-contrib/babel/languages/ob-doc-C.org (the 4th of the 3 files).

Have fun
Thierry