From: "Ulrich J. Herter" <ujh@posteo.de>
To: emacs-orgmode@gnu.org
Subject: Bug? Date calculation in table fail with locale "de"
Date: Thu, 07 Jul 2016 10:42:57 +0200 [thread overview]
Message-ID: <1467880977.18638.1.camel@posteo.de> (raw)
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=$2-$1
Debugger output:
Substitution history of formula
Orig: ?
$xyz-> $2-$1
@r$c-> $2-$1
$1-> (<2016-07-08 Fri>)-(<2016-07-07 Do>)
--------------------^
Error: Bad word in date: "Do"
There is no difference when using "date($1)...".
When doing "date" on each individually it works as expected.
| <2016-07-07 Do> | <2016-07-08 Fr> | 736152 | 736153 | 1 |
#+TBLFM: $3=date($1)::$4=date($2)::$5=$4-$3
Also, putting the locale to LANG="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
next reply other threads:[~2016-07-07 8:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-07 8:42 Ulrich J. Herter [this message]
2016-07-21 9:50 ` Bug? Date calculation in table fail with locale "de" Nicolas Goaziou
2016-07-21 10:35 ` Ulrich J. Herter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1467880977.18638.1.camel@posteo.de \
--to=ujh@posteo.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).