[asterisk-bugs] [Asterisk 0014333]: [patch] add option to configure locale for date/time string construction

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Aug 2 10:53:36 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14333 
====================================================================== 
Reported By:                klaus3000
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   14333
Category:                   Applications/app_voicemail/NewFeature
Reproducibility:            have not tried
Severity:                   feature
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
JIRA:                       SWP-1483 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 169203 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-01-26 07:35 CST
Last Modified:              2010-08-02 10:53 CDT
====================================================================== 
Summary:                    [patch] add option to configure locale for date/time
string construction
Description: 
Hi!

When voicemail sends emails it constructs the date/time when the
voicemessage was received. This patch allows to configure the locale for
generation of the string.

locale=de_AT.UTF-8 results in

"Montag, 26 Jänner 2009" instead of "Monday, 26 January 2009".

This could also be achieved setting the default OS locale - but this would
also change the locale of all other date/time strings in Asterisk
(logmesage, CDRs...) which can be bad.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0015237 [patch] Added emaildatelocale option fo...
====================================================================== 

---------------------------------------------------------------------- 
 (0125428) jcollie (manager) - 2010-08-02 10:53
 https://issues.asterisk.org/view.php?id=14333#c125428 
---------------------------------------------------------------------- 
I'm having problems compiling chan_misdn, and I think that they may be
related to this change:

gcc -o misdn/isdn_msg_parser.o -c misdn/isdn_msg_parser.c -MD -MT
misdn/isdn_msg_parser.o -MF .misdn_isdn_msg_parser.o.d -MP -
pthread -I/builddir/build/BUILD/asterisk-1.8.0-beta2/include -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-p
rotector --param=ssp-buffer-size=4 -m64 -mtune=generic
-Werror-implicit-function-declaration  -I/usr/include/libxml2 -Wstrict-
prototypes -Wmissing-prototypes -Wmissing-declarations  -march=k8   -fPIC
-DAST_MODULE=\"chan_misdn\"     -O2 -g -pipe -Wall -
Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -Werror-implicit-function-
declaration
In file included from misdn/ie.c:34:0,
                 from misdn/isdn_msg_parser.c:26:
/builddir/build/BUILD/asterisk-1.8.0-beta2/include/asterisk/localtime.h:32:16:
error: conflicting types for 'locale_t'
/usr/include/xlocale.h:43:20: note: previous declaration of 'locale_t' was
here 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-08-02 10:53 jcollie        Note Added: 0125428                          
======================================================================




More information about the asterisk-bugs mailing list