diff options
author | Guillem Jover <guillem@debian.org> | 2013-11-17 06:46:28 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2013-11-23 06:24:30 +0100 |
commit | fa1cd230b9d89c4f861d10267ea635c8babf6627 (patch) | |
tree | be27fc97ac33400f31817a1d2ade00eb5b66e0da /dpkg-deb/main.c | |
parent | 62841baecfc474fd1bf61ae8ee75a636ccf8f909 (diff) | |
download | dpkg-fa1cd230b9d89c4f861d10267ea635c8babf6627.tar.gz |
libdpkg: New dpkg_locales_init()
Switch all program to use the new function instead of open-coding it.
Diffstat (limited to 'dpkg-deb/main.c')
-rw-r--r-- | dpkg-deb/main.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/dpkg-deb/main.c b/dpkg-deb/main.c index 50c80810e..310bd417d 100644 --- a/dpkg-deb/main.c +++ b/dpkg-deb/main.c @@ -247,10 +247,7 @@ int main(int argc, const char *const *argv) { int ret; setlocale(LC_NUMERIC, "POSIX"); - setlocale(LC_ALL, ""); - bindtextdomain(PACKAGE, LOCALEDIR); - textdomain(PACKAGE); - + dpkg_locales_init(PACKAGE); dpkg_program_init(BACKEND); dpkg_options_parse(&argv, cmdinfos, printforhelp); |