From 8736ef6c5a39dd802b1abefdd5117dbdc5bfac85 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 1 Apr 2013 10:49:25 +0200 Subject: [PATCH] xbps-create: fix issue #5 from github: initialize setlocale. --- NEWS | 3 +++ bin/xbps-create/main.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/NEWS b/NEWS index 4c7ac8f4..0513e002 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,8 @@ xbps-0.23 (???): + * xbps-create(8): initialize setlocale so that utf8 files can be archived. + The locale must be utf8 capable for this to work. Fixes issue #5 from github. + * libxbps: fix a use-after-free in state cb when a binpkg doesn't match its hash with the hash stored in repo index. diff --git a/bin/xbps-create/main.c b/bin/xbps-create/main.c index af55e549..9a6c2beb 100644 --- a/bin/xbps-create/main.c +++ b/bin/xbps-create/main.c @@ -38,6 +38,7 @@ #include #include #include +#include #include #include "queue.h" @@ -679,6 +680,8 @@ main(int argc, char **argv) destdir = argv[optind]; + setlocale(LC_ALL, ""); + if (pkgver == NULL) die("pkgver not set!"); else if (desc == NULL)