* date function in table formula does not understand German date stamps
@ 2012-10-31 12:06 Viktor Rosenfeld
2012-12-20 0:36 ` Bastien
0 siblings, 1 reply; 2+ messages in thread
From: Viktor Rosenfeld @ 2012-10-31 12:06 UTC (permalink / raw
To: emacs-orgmode
Hi,
I use the function `date' in a table formula to convert org date stamps to
integers for further processing. However, after switching Emacs to a German
locale, this no longer works. Consider the table below:
| Stamp | date |
|------------------+--------|
| [2012-10-31 Wed] | 734808 |
| [2012-10-31 Mi] | #ERROR |
#+TBLFM: $2=date(<$1>)
Org mode generally works fine with the German version of the date stamp, i.e.,
it is picked up in the agenda and deadline warnings work as expected. However,
the `date' function in a table formula does not work. My Emacs inserts the
German version of the date stamp after I've added the following file as
`.MacOSX/environment.plist':
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>LANG</key>
<string>de_DE.UTF-8</string>
<key>LC_ALL</key>
<string>de_DE.UTF-8</string>
</dict>
</plist>
This was necessary to make Cocoa Emacs correctly process filenames with umlauts.
Any idea how the date function can be made locale-aware? Or is there another
alternative for this calculation?
Thanks,
Viktor
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: date function in table formula does not understand German date stamps
2012-10-31 12:06 date function in table formula does not understand German date stamps Viktor Rosenfeld
@ 2012-12-20 0:36 ` Bastien
0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2012-12-20 0:36 UTC (permalink / raw
To: emacs-orgmode
Hi Viktor,
Viktor Rosenfeld <listuser36@gmail.com> writes:
> I use the function `date' in a table formula to convert org date stamps to
> integers for further processing. However, after switching Emacs to a German
> locale, this no longer works. Consider the table below:
>
> | Stamp | date |
> |------------------+--------|
> | [2012-10-31 Wed] | 734808 |
> | [2012-10-31 Mi] | #ERROR |
> #+TBLFM: $2=date(<$1>)
From current master, this table now returns correct results.
Please test and let me know if this is okay for you.
Thanks for pointing this!
--
Bastien
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-12-20 0:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-31 12:06 date function in table formula does not understand German date stamps Viktor Rosenfeld
2012-12-20 0:36 ` Bastien
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.