emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug? Date calculation in table fail with locale "de"
@ 2016-07-07  8:42 Ulrich J. Herter
  2016-07-21  9:50 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Ulrich J. Herter @ 2016-07-07  8:42 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug? Date calculation in table fail with locale "de"
  2016-07-07  8:42 Bug? Date calculation in table fail with locale "de" Ulrich J. Herter
@ 2016-07-21  9:50 ` Nicolas Goaziou
  2016-07-21 10:35   ` Ulrich J. Herter
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2016-07-21  9:50 UTC (permalink / raw)
  To: Ulrich J. Herter; +Cc: emacs-orgmode

Hello,

"Ulrich J. Herter" <ujh@posteo.de> writes:

> 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"

Fixed in development version. Thank you.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug? Date calculation in table fail with locale "de"
  2016-07-21  9:50 ` Nicolas Goaziou
@ 2016-07-21 10:35   ` Ulrich J. Herter
  0 siblings, 0 replies; 3+ messages in thread
From: Ulrich J. Herter @ 2016-07-21 10:35 UTC (permalink / raw)
  To: emacs-orgmode

Am Donnerstag, den 21.07.2016, 11:50 +0200 schrieb Nicolas Goaziou:
> "Ulrich J. Herter" <ujh@posteo.de> writes:
> 
> > 
> > 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"
> 
> Fixed in development version. Thank you.
Awesome, thank you!

Regards, Uli

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-07-21 10:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-07  8:42 Bug? Date calculation in table fail with locale "de" Ulrich J. Herter
2016-07-21  9:50 ` Nicolas Goaziou
2016-07-21 10:35   ` Ulrich J. Herter

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).