commit c758871bc138fbc54310f840009478f38c374f37
parent 922e76d53a8229569da00b407c610a161d28165b
Author: Chris Guillott <chris@techfo.xyz>
Date: Wed, 2 Aug 2017 18:33:20 -0400
obey date/time formats for locales
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/i3lock.c b/i3lock.c
@@ -7,6 +7,7 @@
*
*/
#include <stdio.h>
+#include <locale.h>
#include <stdlib.h>
#include <pwd.h>
#include <sys/types.h>
@@ -946,6 +947,8 @@ int main(int argc, char *argv[]) {
{NULL, no_argument, NULL, 0}};
+ setlocale(LC_ALL, "");
+
if ((pw = getpwuid(getuid())) == NULL)
err(EXIT_FAILURE, "getpwuid() failed");
if ((username = pw->pw_name) == NULL)