[luatex] Localisation of Lua or LuaTeX

Ralf Meyer rameyer at uni-math.gwdg.de
Thu Mar 1 15:54:50 CET 2012


When I was trying out how to format the date in LuaTeX as advertised
using os.setlocale and os.date, I still got the english date.  Actually,
this is a Lua problem because when I run lua, I get the same result:

Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
> os.setlocale("de_DE")
> print(os.date("Heute ist der \%A im Monat \%B."))
Heute ist der Thursday im Monat March.
> os.setlocale("de_DE","time")
> print(os.date("Heute ist der \%A im Monat \%B."))
Heute ist der Thursday im Monat March.

What could be the reason for os.setlocale to have no effect?

Yours,
Ralf Meyer

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6462 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://tug.org/pipermail/luatex/attachments/20120301/5779ffc2/attachment.bin>


More information about the luatex mailing list