summaryrefslogtreecommitdiff
path: root/src/lib/evil
diff options
context:
space:
mode:
authormichelle legrand <michelle.legrand@openwide.fr>2015-01-30 10:49:45 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-01-30 10:49:45 +0100
commit256fc80dbc5c2e72c88df014334797134b807df7 (patch)
tree36b448b564489cbd474ab369cfb6f2a88ca8a211 /src/lib/evil
parentac0b42a51a756ab15416aadeeb053eff7ed77d53 (diff)
evil: add windows compatible langinfo.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/evil')
-rw-r--r--src/lib/evil/evil_langinfo.c20
-rw-r--r--src/lib/evil/evil_langinfo.h8
2 files changed, 28 insertions, 0 deletions
diff --git a/src/lib/evil/evil_langinfo.c b/src/lib/evil/evil_langinfo.c
index 39aec6f390..2cec67a003 100644
--- a/src/lib/evil/evil_langinfo.c
+++ b/src/lib/evil/evil_langinfo.c
@@ -43,6 +43,26 @@ nl_langinfo(nl_item index)
43 { 43 {
44 return localeconv()->decimal_point; 44 return localeconv()->decimal_point;
45 } 45 }
46 case D_T_FMT:
47 {
48 return "%a %d %b %Y %T %Z";
49 }
50 case D_FMT:
51 {
52 return "%m/%d/%Y";
53 }
54 case T_FMT:
55 {
56 return "%T";
57 }
58 case T_FMT_AMPM:
59 {
60 return "%r";
61 }
62 default:
63 {
64 return "%a %d %b %Y %T %Z";
65 }
46 } 66 }
47 67
48 return nothing; 68 return nothing;
diff --git a/src/lib/evil/evil_langinfo.h b/src/lib/evil/evil_langinfo.h
index e2dbbda828..b9f35029a4 100644
--- a/src/lib/evil/evil_langinfo.h
+++ b/src/lib/evil/evil_langinfo.h
@@ -19,6 +19,14 @@ enum {
19 _NL_CTYPE_CODESET = __NL_ITEM( LC_CTYPE, 0 ), 19 _NL_CTYPE_CODESET = __NL_ITEM( LC_CTYPE, 0 ),
20 _NL_NUMERIC_RADIXCHAR = __NL_ITEM( LC_NUMERIC, 0 ), 20 _NL_NUMERIC_RADIXCHAR = __NL_ITEM( LC_NUMERIC, 0 ),
21 21
22 D_T_FMT, /* Date and time format for strftime*/
23#define D_T_FMT D_T_FMT
24 D_FMT, /* Date format for strftime*/
25#define D_FMT D_FMT
26 T_FMT, /* Time format for strftime*/
27#define T_FMT T_FMT
28 T_FMT_AMPM, /*12-hour time format for strftime*/
29#define T_FMT_AMPM T_FMT_AMPM
22 /* 30 /*
23 * Dummy entry, to terminate the list. 31 * Dummy entry, to terminate the list.
24 */ 32 */