From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ulrich J. Herter" Subject: Bug? Date calculation in table fail with locale "de" Date: Thu, 07 Jul 2016 10:42:57 +0200 Message-ID: <1467880977.18638.1.camel@posteo.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bL4u4-0008E6-St for emacs-orgmode@gnu.org; Thu, 07 Jul 2016 04:43:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bL4u0-0002zS-Qs for emacs-orgmode@gnu.org; Thu, 07 Jul 2016 04:43:24 -0400 Received: from mout02.posteo.de ([185.67.36.66]:42253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bL4u0-0002wc-KJ for emacs-orgmode@gnu.org; Thu, 07 Jul 2016 04:43:20 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 114C220A84 for ; Thu, 7 Jul 2016 10:43:10 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3rlWNY3QrlzyvF for ; Thu, 7 Jul 2016 10:43:09 +0200 (CEST) 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" To: emacs-orgmode@gnu.org Dear Orgers, Is this a bug? I'm trying to do some date calculations in a table, however, when on German language settings I'm getting the following: | <2016-07-07 Do> | <2016-07-08 Fr> | #ERROR | #+TBLFM: $3=3D$2-$1 Debugger output: Substitution history of formula Orig:=C2=A0=C2=A0=C2=A0? $xyz->=C2=A0=C2=A0$2-$1 @r$c->=C2=A0=C2=A0$2-$1 $1->=C2=A0=C2=A0=C2=A0=C2=A0(<2016-07-08 Fri>)-(<2016-07-07 Do>) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0--------------------^ Error:=C2=A0=C2=A0Bad word in date: "Do" There is no difference when using "date($1)...". When doing "date" on each individually it works as expected.=C2=A0 | <2016-07-07 Do> | <2016-07-08 Fr> | 736152 | 736153 | 1 | #+TBLFM: $3=3Ddate($1)::$4=3Ddate($2)::$5=3D$4-$3 Also, putting the locale to LANG=3D"us_US.UTF8" and the dates in US format, I do NOT get the error and the examples run fine. My emacs version is GNU Emacs 24.5.1 Org version 8.3.4 (release_8.3.4- 99-ga8e4a3). Any ideas how to fix this? Thanks Uli