diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-12-02 03:27:35 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-12-02 03:27:35 +0100 |
commit | cc6345e00baa53aa82ac05be27e22f3e5e5c27e7 (patch) | |
tree | 0441a2346382dad9501cf8ab64b2665d43dc8c71 | |
parent | 6d128f72380a9cb9926559e6a027a5da4ae64467 (diff) | |
download | blogc-cc6345e00baa53aa82ac05be27e22f3e5e5c27e7.tar.gz blogc-cc6345e00baa53aa82ac05be27e22f3e5e5c27e7.tar.bz2 blogc-cc6345e00baa53aa82ac05be27e22f3e5e5c27e7.zip |
main: honour locales from environment variables
-rw-r--r-- | src/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -19,6 +19,7 @@ #endif /* HAVE_SYS_TYPES_H */ #include <errno.h> +#include <locale.h> #include <stdbool.h> #include <stdio.h> #include <string.h> @@ -105,6 +106,8 @@ blogc_mkdir_recursive(const char *filename) int main(int argc, char **argv) { + setlocale(LC_ALL, ""); + int rv = 0; bool listing = false; |