Home | Directory | Search | 12 unapplied patches, 13 total | 7 programs
Haberdasher
demiurgo.org

Patch #6 (by zoso)

Unapplied Patches for 'NEW'

Some fake change, normal diff (for 1.2.2)

Other Applied Patches for 'NEW'

None

Basic Info

NEW
Add basic locale support
debian
Adds basic locale support, so the program outputs the date in the current locale format.
Submitted as a patch for the Debian bug 180854 (see http://bugs.debian.org/180854).

Patch History

1.2.0 579 Bytes 28 Aug, 2006 (17:35)
Initial version

Patch Text

*** src/new.c.old	2003-02-13 11:52:17.000000000 +0000
--- src/new.c	2003-02-13 12:07:21.000000000 +0000
***************
*** 31,36 ****
--- 31,37 ----
  #include <template.h>
  #include <limits.h>
  #include <pair.h>
+ #include <locale.h>
  
  extern char *usage_new;
  
***************
*** 131,136 ****
--- 132,138 ----
      settings_t settings;
      parse_args(argc, argv, &settings);
      template_init();
+     setlocale(LC_ALL, "");
      if (!template_set_global_dir(GLOBAL_TEMPLATE_DIR)) {
  	template_perror("Error setting global template dir");
  	exit(EXIT_FAILURE);