xbps-create: fix issue #5 from github: initialize setlocale.
This commit is contained in:
parent
e4a3342c39
commit
8736ef6c5a
3
NEWS
3
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.
|
||||
|
||||
|
@ -38,6 +38,7 @@
|
||||
#include <ftw.h>
|
||||
#include <fcntl.h>
|
||||
#include <libgen.h>
|
||||
#include <locale.h>
|
||||
|
||||
#include <xbps_api.h>
|
||||
#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)
|
||||
|
Loading…
Reference in New Issue
Block a user