Skip to content

Commit 4fbccdf

Browse files
committed
removed unneccessary locale code
1 parent 8ec47ca commit 4fbccdf

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

ddate.c

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
3232
2000-03-17 Burt Holzman <holzman+ddate@gmail.com>
3333
- added range checks for dates
34+
35+
2014-06-07 William Woodruff <william@tuffbizz.com>
36+
- removed gettext dependent locale code
37+
38+
FIVE TONS OF FLAX
3439
*/
3540

3641
/* configuration options VVVVV READ THIS!!! */
@@ -62,12 +67,6 @@
6267
#include <time.h>
6368
#include <stdio.h>
6469

65-
// work around includes and defines from formerly nls.h
66-
#include <locale.h>
67-
#include <libintl.h>
68-
69-
#define LOCALEDIR "/usr/share/locale"
70-
7170

7271
// work around includes and defines from formerly c.h
7372
#ifndef ARRAY_SIZE
@@ -185,10 +184,6 @@ main (int argc, char *argv[]) {
185184
if ((p = strrchr(progname, '/')) != NULL)
186185
progname = p+1;
187186

188-
setlocale(LC_ALL, "");
189-
bindtextdomain(PACKAGE, LOCALEDIR);
190-
textdomain(PACKAGE);
191-
192187
srandom(time(NULL));
193188
/* do args here */
194189
for(pi=1; pi<argc; pi++) {

0 commit comments

Comments
 (0)