~ubuntu-branches/ubuntu/maverick/evolution-data-server/maverick-updates

« back to all changes in this revision

Viewing changes to libedataserver/e-time-utils.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-03-01 22:47:15 UTC
  • mfrom: (1.1.77 upstream)
  • Revision ID: james.westby@ubuntu.com-20100301224715-drsxc2y3t8anz3c0
Tags: 2.28.3-0ubuntu1
* New upstream version:
  Bug Fixes:
  - #602723 - Contact list name doesn't get displayed in 'To' dialog 
  - #600322 - assertion failed: (reply == msg) in cs_waitinfo()
              (lp: #455020, #475147)
  - #564727 - Few memory leaks (lp: #305428)
  - #574940 - Always ref returned info from message_info_from_uid 
              (lp: #341909)
  - #429317 - Use the relative URI returned if the server 
              re-directs a request
  - #602820 - Test validity of a book_view before using it in LDAP 
  - #590762 - Recurring google calendar items are not changeable
  - #604236 - Slow GPG processing 
  - #597816 - Do not crash on incorrect parameters used in sexp to SQL 
              (lp: #444177)
  - #604544 - Try Exchange fallback authentication only once 
  - #600778 - Fix --enable-e2k-debug configure option resolution 
  - #260407 - 'endswith' address book search doesn't work 
  - #549221 - (bnc) delete, sync flags immediately
* debian/patches/99_reconfigure.patch:
  - new version update

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 */
10
10
 
11
11
#include <config.h>
 
12
#define _XOPEN_SOURCE
12
13
 
13
 
#ifdef __linux__
14
 
/* We need this to get a prototype for strptime. */
15
 
#define _GNU_SOURCE
16
 
#endif /* __linux__ */
 
14
/* For tm_gmtoff */
 
15
#define _BSD_SOURCE
17
16
 
18
17
#include <time.h>
19
18
#include <sys/time.h>
20
19
 
21
 
#ifdef __linux__
 
20
#ifdef HAVE_NL_LANGINFO
22
21
#include <langinfo.h>
23
 
#undef _GNU_SOURCE
24
 
#endif /* __linux__ */
 
22
#endif /* HAVE_NL_LANGINFO */
25
23
 
26
24
#include <string.h>
27
25
#include <ctype.h>
2028
2026
{
2029
2027
        gchar *p;
2030
2028
        gchar *res = NULL;
2031
 
#if defined(__linux__)
 
2029
#if defined(HAVE_NL_LANGINFO)
2032
2030
        res = g_strdup (nl_langinfo (D_FMT) );
2033
2031
#elif defined(G_OS_WIN32)
2034
2032
  #define GET_LOCALE_INFO(str, len) GetLocaleInfoA(LOCALE_USER_DEFAULT, LOCALE_SLONGDATE, str, len)