aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-12-02 03:27:35 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-12-02 03:27:35 +0100
commitcc6345e00baa53aa82ac05be27e22f3e5e5c27e7 (patch)
tree0441a2346382dad9501cf8ab64b2665d43dc8c71 /src
parent6d128f72380a9cb9926559e6a027a5da4ae64467 (diff)
downloadblogc-cc6345e00baa53aa82ac05be27e22f3e5e5c27e7.tar.gz
blogc-cc6345e00baa53aa82ac05be27e22f3e5e5c27e7.tar.bz2
blogc-cc6345e00baa53aa82ac05be27e22f3e5e5c27e7.zip
main: honour locales from environment variables
Diffstat (limited to 'src')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index d6fa595..600a131 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;