1
0
Fork 0
mirror of https://github.com/Raymo111/i3lock-color.git synced 2024-11-11 13:50:52 -05:00

obey date/time formats for locales

This commit is contained in:
Chris Guillott 2017-08-02 18:33:20 -04:00
parent 922e76d53a
commit c758871bc1

View file

@ -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)