[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] ls: error initializing month strings
Helmut Karlowski wrote:
ls: "error initializing month strings"
When using the ls from gentoo I get the above error-message when not
using --time-style="iso" or similar. Is this an error of ls or is there
something missing in my installation? The listing from ls is ok though.
I went into that trouble last summer when trying to compile coreutils 7.5.
Here is my patch, I think it is clean.
This problem should be reported to the coreutils maintainers, if it has not
already been done.
--
Vincent Rivière
diff -aurN coreutils-7.5/src/ls.c coreutils-7.5-mint-20090821/src/ls.c
--- coreutils-7.5/src/ls.c 2009-08-15 17:25:32.000000000 +0200
+++ coreutils-7.5-mint-20090821/src/ls.c 2009-08-27 00:33:05.312500000 +0200
@@ -2018,10 +2018,12 @@
}
}
}
+#ifdef HAVE_NL_LANGINFO
/* Note we leave %5b etc. alone so user widths/flags are honored. */
if (strstr (long_time_format[0],"%b") || strstr (long_time_format[1],"%b"))
if (!abmon_init ())
error (0, 0, _("error initializing month strings"));
+#endif
}
return optind;